Fix releasefiles.cfg to be generated correctly.

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6964 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
RandumKiwi
2012-12-10 04:09:56 +00:00
parent f5d218ed50
commit 8932e4b5f4
2 changed files with 645 additions and 1500 deletions
+625 -1495
View File
File diff suppressed because it is too large Load Diff
+20 -5
View File
@@ -26,16 +26,31 @@ cp $ABSOLUTEPATHTODOCS/* $PATHTOACDIR/docs/ -R
# Set up ./config/docs.cfg correctly:
xsltproc -o ./config/docs.cfg ./docs/xml/cuberef2cubescript.xslt ./docs/reference.xml
# Set up "releasefiles.cfg" correctly:
head -n3 ./config/releasefiles.cfg | tee ./config/releasefiles.cfg
find ./docs ./packages -type f | grep -v ".svn" >> ./config/releasefiles.cfg
# Set up "releasefiles.cfg" correctly. We should be forcing good standards, so don't
# worry about leaving stuff out that isn't normally in the configs:
find ./packages/audio/ambience ./packages/textures -type f \
-name "*.jpg" \
-o -name "*.png" \
-o -name "*.ogg" | \
grep -vE '(.svn|\/textures\/skymaps\/)' | \
gawk -F'\\./' '{print $2}' > ./config/releasefiles.cfg
find ./packages/textures/skymaps/* ./packages/models/mapmodels/* -type d | \
grep -v ".svn" | \
gawk -F'\\./' '{print $2}' >> ./config/releasefiles.cfg
# Create the linux tarball:
cd .. && mv $ACDIRFOLDERNAME AssaultCube_v$NEWACVERSION
tar cjvf assaultcube_v$NEWACVERSION.tar.bz2 --exclude=*.bat --exclude=*bin_win32* --exclude=*xcode* --exclude=*vcpp* --exclude-vcs AssaultCube_v$NEWACVERSION/
tar cjvf AssaultCube_v$NEWACVERSION.tar.bz2 \
--exclude=*.bat --exclude=*bin_win32* \
--exclude=*xcode* \
--exclude=*vcpp* \
--exclude-vcs \
AssaultCube_v$NEWACVERSION/
# Create the source tarball:
mv AssaultCube_v$NEWACVERSION/ AssaultCube_v$NEWACVERSION.source/
tar cjvf assaultcube_v$NEWACVERSION.source.tar.bz2 --exclude-vcs AssaultCube_v$NEWACVERSION.source/source/
tar cjvf AssaultCube_v$NEWACVERSION.source.tar.bz2 \
--exclude-vcs \
AssaultCube_v$NEWACVERSION.source/source/
mv AssaultCube_v$NEWACVERSION.source/ $ACDIRFOLDERNAME/