Raspberry Pi build script: let caller specify final tarball name.

This commit is contained in:
Ryan C. Gordon 2013-10-10 02:37:36 -04:00
parent f7e0a9b2b0
commit 69e1e779c2

View File

@ -10,7 +10,10 @@
# build against it, and sdl2-config should work correctly on the # build against it, and sdl2-config should work correctly on the
# actual device. # 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` OSTYPE=`uname -s`
if [ "$OSTYPE" != "Linux" ]; then 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 mkdir -p ./usr
mv ./rpi-sdl2-installed ./usr/local mv ./rpi-sdl2-installed ./usr/local
tar -cjvvf $PARENTDIR/$TARBALL usr
popd popd
tar -cjvvf $TARBALL -C $BUILDBOTDIR usr
rm -rf $BUILDBOTDIR rm -rf $BUILDBOTDIR
set +x set +x