mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 10:21:03 +00:00
Add export utility for Nexuiz, now check-proj handles it.
This commit is contained in:
parent
3968dc84fd
commit
13ef558fff
1 changed files with 37 additions and 0 deletions
37
misc/nexuiz_export.sh
Executable file
37
misc/nexuiz_export.sh
Executable file
|
@ -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!"
|
Loading…
Reference in a new issue