5 REPO_DIR
=/home
/repo
/repo
6 LOCK_FILE
=/tmp
/webupdate.lock
10 # Make sure we don't run twice.
11 if [ -s ${LOCK_FILE} ] && kill -0 $
(cat ${LOCK_FILE}); then
12 echo "Already running (stuck?) with pid $(cat ${LOCK_FILE})" >&2
17 pushd ${REPO_DIR} > /dev
/null
19 if [ "`git rev-list $BRANCH..$REMOTE/$BRANCH`" ]; then
20 git merge
--ff-only $REMOTE/$BRANCH && make --quiet && make install