3 if [ ! -d qcsrc ]; then
4 echo "failed to find qcsrc directory in $(pwd), please run this script"
5 echo "from xonotic-data.pk3dir"
8 # ensure this is actually a xonotic repo
9 pushd qcsrc > /dev/null
10 if [ ! -d client -o ! -d common -o ! -d dpdefs -o ! -d menu -o ! -d server -o ! -d warpzonelib ]; then
11 echo "this doesnt look like a xonotic source tree, aborting"
17 # force reset and update
20 echo "not a git directory, continuing without rebase"
22 echo -n "resetting git state and updating ... "
23 git reset --hard HEAD > /dev/null 2>&1
24 git pull > /dev/null 2>&1
28 echo -n "generate precache for csqc ..."
29 ./collect-precache.sh > /dev/null 2>&1
32 echo -n "removing redundant files ..."
34 rm -f autocvarize-update.sh
36 rm -f collect-precache.sh
38 rm -f i18n-badwords.txt
42 echo -n "creating projects ..."
49 echo -n "creating zip archive ..."
50 zip -r -9 ../xonotic.zip * > /dev/null