2018-01-17 20:43:17 -06:00
|
|
|
#!/bin/bash
|
2018-01-24 21:55:24 -06:00
|
|
|
#
|
|
|
|
# git_update.sh: update the ZetaGlest source and data repos. Use this
|
|
|
|
# script if you've cloned from the master repositories, not if you're
|
|
|
|
# a fork.
|
|
|
|
#
|
|
|
|
# FIXME: there should be a way to check if this is a clone of the
|
|
|
|
# main repo, or a fork. If it's a fork, this shouldn't be run. Mentioned
|
|
|
|
# in the docs, but it would be good to have a catch in this script.
|
|
|
|
|
2018-01-17 20:43:17 -06:00
|
|
|
export LANG=C
|
|
|
|
|
2018-01-17 21:38:23 -06:00
|
|
|
cd "$(dirname $(readlink -f $0))" &&
|
2018-01-17 20:43:17 -06:00
|
|
|
|
2018-01-24 21:55:24 -06:00
|
|
|
echo $PWD
|
2018-01-17 20:43:17 -06:00
|
|
|
|
|
|
|
git pull &&
|
|
|
|
|
2018-01-24 21:55:24 -06:00
|
|
|
echo $PWD
|
|
|
|
|
|
|
|
cd ../zetaglest-data &&
|
2018-01-17 21:18:15 -06:00
|
|
|
git pull &&
|
2018-01-17 20:43:17 -06:00
|
|
|
|
2018-01-17 21:18:15 -06:00
|
|
|
exit 0
|