oolite/src/SDL/makedist.sh
2009-08-29 23:09:22 +00:00

44 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
#
# This shell script simply makes a tarball of the current SVN extract,
# making sure only source and required files to build are put into the
# tarball (i.e. no .svn dirs, no oolite.app dir etc.)
#
if [ ! $1 ]
then
echo "Usage: makedist.sh <release>"
exit
fi
rm -rf ~/oolite-src
rm -rf ~/oolite-data
mkdir ~/oolite-src
mkdir ~/oolite-data
cp *.m *.c *.h GNU* README.TXT PORTING.TXT ~/oolite-src
# we don't cp -r because then we'd get all the .svn stuff
# so do it a dir at a time and copy specific files
SRCDIR=Resources
RESDIR=~/oolite-data/Resources
mkdir $RESDIR
mkdir $RESDIR/AIs
cp $SRCDIR/AIs/*.plist $RESDIR/AIs
mkdir $RESDIR/Config
cp $SRCDIR/Config/*.plist $RESDIR/Config
mkdir $RESDIR/Images
cp $SRCDIR/Images/*.png $RESDIR/Images
mkdir $RESDIR/Models
cp $SRCDIR/Models/*.dat $RESDIR/Models
mkdir $RESDIR/Music
cp $SRCDIR/Music/*.ogg $RESDIR/Music
mkdir $RESDIR/Sounds
cp $SRCDIR/Sounds/*.ogg $RESDIR/Sounds
mkdir $RESDIR/Textures
cp $SRCDIR/Textures/*.png $RESDIR/Textures
cp $SRCDIR/Info-Oolite.plist $RESDIR
cd ~/
tar zcvf oolite-src-$1.tar.gz oolite-src
tar zcvf oolite-data-$1.tar.gz oolite-data