Files
assaultcube-/source/package_assaultcube.sh
T
RandumKiwi 8932e4b5f4 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
2012-12-10 04:09:56 +00:00

57 lines
2.0 KiB
Bash

#!/bin/sh
# Before running this script, complete this checklist:
# * Download a copy of current SVN.
# * Download a copy of current SVN documentation files.
# * Set the makefile to strip symbols.
# * Patch the source code with any relevant materials.
# * Compile new 32/64 bit binaries and put them in their appropriate ./bin_unix locations.
# (this script doesn't do that, as I compile the 32 bit on a virtual machine).
# * Delete all non-repository files/folders except any shadows.dat and the new binaries.
# (this script doesn't do that... yet).
# * Change the below variables before executing the script:
PATHTOACDIR=~/AssaultCube/SVN_Trunk
ACDIRFOLDERNAME=SVN_Trunk
NEWACVERSION=1.2.0.0_beta
ABSOLUTEPATHTODOCS=~/AssaultCube/SVN_Website/htdocs/docs
# Change path to the AC folder:
cd $PATHTOACDIR
# Copy docs over:
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. 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/
# 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/
mv AssaultCube_v$NEWACVERSION.source/ $ACDIRFOLDERNAME/