X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=misc%2Fxonotic_export.sh;h=075b044aa491be45314b22e2006f4ed147880a1e;hp=08f03550fca4cb43064215a4e0e58b93e47d5b6a;hb=3968dc84fda0084db9dad2a2f8cf8ebeb9b5a320;hpb=241637a9806c4a0b1d92eb325981b3e342255e22 diff --git a/misc/xonotic_export.sh b/misc/xonotic_export.sh old mode 100644 new mode 100755 index 08f0355..075b044 --- a/misc/xonotic_export.sh +++ b/misc/xonotic_export.sh @@ -9,7 +9,7 @@ else pushd qcsrc > /dev/null if [ ! -d client -o ! -d common -o ! -d dpdefs -o ! -d menu -o ! -d server -o ! -d warpzonelib ]; then echo "this doesnt look like a xonotic source tree, aborting" - popd >> /dev/null + popd > /dev/null exit 1 fi fi @@ -20,24 +20,29 @@ if [ $? -ne 0 ]; then echo "not a git directory, continuing without rebase" else echo -n "resetting git state and updating ... " - git reset --hard HEAD > /dev/null - git pull > /dev/null + git reset --hard HEAD > /dev/null 2>&1 + git pull > /dev/null 2>&1 echo "complete" fi -echo -n "removing redundant files ... " -rm -f autocvarize.pl +echo -n "removing redundant files ..." +rm -f Makefile rm -f autocvarize-update.sh +rm -f autocvarize.pl rm -f collect-precache.sh rm -f fteqcc-bugs.qc rm -f i18n-badwords.txt rm -f i18n-guide.txt -rm -rf server-testcase -rm -f Makefile -rm -f *.src echo "complete" -echo -n "creating zip archive ... " +echo -n "creating projects ..." +echo "client" > dirs +echo "server" >> dirs +echo "menu" >> dirs + +echo "complete" + +echo -n "creating zip archive ..." zip -r -9 ../xonotic.zip * > /dev/null echo "complete"