From 13ef558fff71eaa8c829e07a57bad53eb016a074 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 25 Sep 2013 04:03:37 -0400 Subject: [PATCH] Add export utility for Nexuiz, now check-proj handles it. --- misc/nexuiz_export.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 misc/nexuiz_export.sh diff --git a/misc/nexuiz_export.sh b/misc/nexuiz_export.sh new file mode 100755 index 0000000..a07a7af --- /dev/null +++ b/misc/nexuiz_export.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +if [ ! -d qcsrc ]; then + echo "failed to find qcsrc directory in $(pwd), please run this script" + echo "from nexuiz data directory" + exit 1 +else + # ensure this is actually a xonotic repo + pushd qcsrc > /dev/null + if [ ! -d client -o ! -d common -o ! -d menu -o ! -d server -o ! -d warpzonelib ]; then + echo "this doesnt look like a nexuiz source tree, aborting" + popd > /dev/null + exit 1 + fi +fi + +echo -n "removing redundant files ..." +rm -f nexuiz.ncb +rm -f nexuiz.sln +rm -f nexuiz.suo +rm -f nexuiz.vcproj +rm -f nexuiz.vcproj.user +echo "complete" + +echo -n "creating projects ..." +echo "client" > dirs +echo "server" >> dirs +echo "menu" >> dirs + +echo "complete" + +echo -n "creating zip archive ..." +zip -r -9 ../nexuiz.zip * > /dev/null +echo "complete" + +popd > /dev/null +echo "finished!" -- 2.39.2