Raspberry Pi build script: let caller specify final tarball name.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 10 Oct 2013 02:37:36 -0400
changeset 7800 76e4b6825efc
parent 7799 a67ccdd0c03a
child 7801 f00cc0a8cd5d
Raspberry Pi build script: let caller specify final tarball name.
build-scripts/raspberrypi-buildbot.sh
--- a/build-scripts/raspberrypi-buildbot.sh	Thu Oct 10 02:21:41 2013 -0400
+++ b/build-scripts/raspberrypi-buildbot.sh	Thu Oct 10 02:37:36 2013 -0400
@@ -10,7 +10,10 @@
 #  build against it, and sdl2-config should work correctly on the
 #  actual device.
 
-TARBALL=sdl-raspberrypi-`hg tip --template '{rev}'`.tar.bz2
+TARBALL="$1"
+if [ -z $1 ]; then
+    TARBALL=sdl-raspberrypi.tar.bz2
+fi
 
 OSTYPE=`uname -s`
 if [ "$OSTYPE" != "Linux" ]; then
@@ -45,8 +48,8 @@
 mkdir -p ./usr
 mv ./rpi-sdl2-installed ./usr/local
 
-tar -cjvvf $PARENTDIR/$TARBALL usr
 popd
+tar -cjvvf $TARBALL -C $BUILDBOTDIR usr
 rm -rf $BUILDBOTDIR
 
 set +x