1
0
Fork 0

Always good to test before committing. Fix some obvious problems.

This commit is contained in:
Curtis L. Olson 2011-11-14 15:54:20 -06:00
parent b45211509d
commit da2ffe5a03

View file

@ -1,7 +1,20 @@
#!/bin/sh #!/bin/sh
echo $1 $2
if [ "x$1" != "x" ]; then
BASE="$1"
else
BASE="/home/curt/Projects/FlightGear/" BASE="/home/curt/Projects/FlightGear/"
fi
if [ "x$2" != "x" ]; then
VERSION="$2"
else
VERSION="2.5" VERSION="2.5"
fi
echo base dir = $BASE, version = $VERSION
cd $BASE cd $BASE
@ -21,7 +34,7 @@ tar \
--exclude='*/Docs/source' \ --exclude='*/Docs/source' \
--exclude='*/Models/MNUAV' \ --exclude='*/Models/MNUAV' \
--exclude='*/Models/Airspace' \ --exclude='*/Models/Airspace' \
-cjvf FlightGear-data-$(VERSION).tar.bz2 \ -cjvf FlightGear-data-${VERSION}.tar.bz2 \
data/AI \ data/AI \
data/Aircraft/Generic \ data/Aircraft/Generic \
data/Aircraft/Instruments \ data/Aircraft/Instruments \