]> 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
index 775cf058846c178622679d2d62b8f5612eb13451..075b044aa491be45314b22e2006f4ed147880a1e 100755 (executable)
@@ -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,35 +20,30 @@ 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 ... "
-# remove redundant stuff
-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 prog.src files ... "
-find client common warpzonelib csqcmodellib -type f > csprogs.src
-ls server/w_*.qc | cat >> csprogs.src
-find server common warpzonelib csqcmodellib -type f > progs.src
-ls server/w_*.qc | cat >> progs.src
-find menu common warpzonelib -type f > menu.src
-ls server/w_*.qc | cat >> menu.src
+echo -n "creating projects ..."
+echo "client" >  dirs
+echo "server" >> dirs
+echo "menu"   >> dirs
+
 echo "complete"
 
-echo -n "creating zip archive ... "
-zip -r ../xonotic.zip * > /dev/null
+echo -n "creating zip archive ..."
+zip -r -9 ../xonotic.zip * > /dev/null
 echo "complete"
 
 popd > /dev/null