mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
21 lines
422 B
Bash
Executable file
21 lines
422 B
Bash
Executable file
#!/bin/sh
|
|
|
|
git fetch
|
|
|
|
LOCAL=$(git rev-parse @)
|
|
REMOTE=$(git rev-parse @{u})
|
|
BASE=$(git merge-base @ @{u})
|
|
|
|
if [ $LOCAL = $REMOTE ]; then
|
|
echo "Up-to-date"
|
|
elif [ $LOCAL = $BASE ]; then
|
|
echo "Need to pull"
|
|
git pull
|
|
make clean
|
|
# The environment variable added here adds bottom left download pane.
|
|
MAMEDEV=1 make site
|
|
elif [ $REMOTE = $BASE ]; then
|
|
echo "Need to push"
|
|
else
|
|
echo "Diverged"
|
|
fi
|