summaryrefslogtreecommitdiff
path: root/build-scripts/raspberrypi-buildbot.sh
diff options
context:
space:
mode:
authorRyan C. Gordon <icculus@icculus.org>2013-10-10 02:37:36 -0400
committerRyan C. Gordon <icculus@icculus.org>2013-10-10 02:37:36 -0400
commit564b298dcde730e5dfdd2af65bc74ff70ebe8a24 (patch)
tree28f1f52996cde306f5c1de4b6eca97b583922e76 /build-scripts/raspberrypi-buildbot.sh
parentff06cd923814a07783d55b215a5acd7741fd6a59 (diff)
downloadsdl-564b298dcde730e5dfdd2af65bc74ff70ebe8a24.tar.gz
Raspberry Pi build script: let caller specify final tarball name.
Diffstat (limited to 'build-scripts/raspberrypi-buildbot.sh')
-rwxr-xr-xbuild-scripts/raspberrypi-buildbot.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/build-scripts/raspberrypi-buildbot.sh b/build-scripts/raspberrypi-buildbot.sh
index bfb34e05a..0257091a5 100755
--- a/build-scripts/raspberrypi-buildbot.sh
+++ b/build-scripts/raspberrypi-buildbot.sh
@@ -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 @@ perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/li
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