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:
+625
-1495
File diff suppressed because it is too large
Load Diff
@@ -26,16 +26,31 @@ cp $ABSOLUTEPATHTODOCS/* $PATHTOACDIR/docs/ -R
|
|||||||
# Set up ./config/docs.cfg correctly:
|
# Set up ./config/docs.cfg correctly:
|
||||||
xsltproc -o ./config/docs.cfg ./docs/xml/cuberef2cubescript.xslt ./docs/reference.xml
|
xsltproc -o ./config/docs.cfg ./docs/xml/cuberef2cubescript.xslt ./docs/reference.xml
|
||||||
|
|
||||||
# Set up "releasefiles.cfg" correctly:
|
# Set up "releasefiles.cfg" correctly. We should be forcing good standards, so don't
|
||||||
head -n3 ./config/releasefiles.cfg | tee ./config/releasefiles.cfg
|
# worry about leaving stuff out that isn't normally in the configs:
|
||||||
find ./docs ./packages -type f | grep -v ".svn" >> ./config/releasefiles.cfg
|
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:
|
# Create the linux tarball:
|
||||||
cd .. && mv $ACDIRFOLDERNAME AssaultCube_v$NEWACVERSION
|
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:
|
# Create the source tarball:
|
||||||
mv AssaultCube_v$NEWACVERSION/ AssaultCube_v$NEWACVERSION.source/
|
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/
|
mv AssaultCube_v$NEWACVERSION.source/ $ACDIRFOLDERNAME/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user