mame/docs/update.sh

22 lines
422 B
Bash
Raw Normal View History

2016-08-24 15:15:09 +02:00
#!/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
2016-08-24 15:15:09 +02:00
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi