From da2ffe5a03c96955c256165a063154317b814bd8 Mon Sep 17 00:00:00 2001 From: "Curtis L. Olson" Date: Mon, 14 Nov 2011 15:54:20 -0600 Subject: [PATCH] Always good to test before committing. Fix some obvious problems. --- package/make-base-package.noarch.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/package/make-base-package.noarch.sh b/package/make-base-package.noarch.sh index 8235c27c5..740f5ad2c 100755 --- a/package/make-base-package.noarch.sh +++ b/package/make-base-package.noarch.sh @@ -1,7 +1,20 @@ #!/bin/sh -BASE="/home/curt/Projects/FlightGear/" -VERSION="2.5" +echo $1 $2 + +if [ "x$1" != "x" ]; then + BASE="$1" +else + BASE="/home/curt/Projects/FlightGear/" +fi + +if [ "x$2" != "x" ]; then + VERSION="$2" +else + VERSION="2.5" +fi + +echo base dir = $BASE, version = $VERSION cd $BASE @@ -21,7 +34,7 @@ tar \ --exclude='*/Docs/source' \ --exclude='*/Models/MNUAV' \ --exclude='*/Models/Airspace' \ - -cjvf FlightGear-data-$(VERSION).tar.bz2 \ + -cjvf FlightGear-data-${VERSION}.tar.bz2 \ data/AI \ data/Aircraft/Generic \ data/Aircraft/Instruments \