]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - misc/xonotic_export.sh
Got Xonotic stuff for check-proj to function.
[xonotic/gmqcc.git] / misc / xonotic_export.sh
old mode 100644 (file)
new mode 100755 (executable)
index 08f0355..075b044
@@ -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"