Skip to content

Commit

Permalink
Raspberry Pi build script: let caller specify final tarball name.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 10, 2013
1 parent f7e0a9b commit 69e1e77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build-scripts/raspberrypi-buildbot.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 69e1e77

Please sign in to comment.