mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
20 lines
338 B
Bash
Executable file
20 lines
338 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
|
|
make site
|
|
elif [ $REMOTE = $BASE ]; then
|
|
echo "Need to push"
|
|
else
|
|
echo "Diverged"
|
|
fi
|