build-scripts/raspberrypi-buildbot.sh
changeset 7800 76e4b6825efc
parent 7798 795fc221d417
child 7805 4f0f7b64afa5
equal deleted inserted replaced
7799:a67ccdd0c03a 7800:76e4b6825efc
     8 #  you should be able to build and run SDL2-based software on your
     8 #  you should be able to build and run SDL2-based software on your
     9 #  Pi. Standard configure scripts should be able to find SDL and
     9 #  Pi. Standard configure scripts should be able to find SDL and
    10 #  build against it, and sdl2-config should work correctly on the
    10 #  build against it, and sdl2-config should work correctly on the
    11 #  actual device.
    11 #  actual device.
    12 
    12 
    13 TARBALL=sdl-raspberrypi-`hg tip --template '{rev}'`.tar.bz2
    13 TARBALL="$1"
       
    14 if [ -z $1 ]; then
       
    15     TARBALL=sdl-raspberrypi.tar.bz2
       
    16 fi
    14 
    17 
    15 OSTYPE=`uname -s`
    18 OSTYPE=`uname -s`
    16 if [ "$OSTYPE" != "Linux" ]; then
    19 if [ "$OSTYPE" != "Linux" ]; then
    17     # !!! FIXME
    20     # !!! FIXME
    18     echo "This only works on x86 or x64-64 Linux at the moment." 1>&2
    21     echo "This only works on x86 or x64-64 Linux at the moment." 1>&2
    43 # Fix up a few things to a real install path on a real Raspberry Pi...
    46 # Fix up a few things to a real install path on a real Raspberry Pi...
    44 perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/lib/libSDL2.la ./rpi-sdl2-installed/lib/pkgconfig/sdl2.pc ./rpi-sdl2-installed/bin/sdl2-config
    47 perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/lib/libSDL2.la ./rpi-sdl2-installed/lib/pkgconfig/sdl2.pc ./rpi-sdl2-installed/bin/sdl2-config
    45 mkdir -p ./usr
    48 mkdir -p ./usr
    46 mv ./rpi-sdl2-installed ./usr/local
    49 mv ./rpi-sdl2-installed ./usr/local
    47 
    50 
    48 tar -cjvvf $PARENTDIR/$TARBALL usr
       
    49 popd
    51 popd
       
    52 tar -cjvvf $TARBALL -C $BUILDBOTDIR usr
    50 rm -rf $BUILDBOTDIR
    53 rm -rf $BUILDBOTDIR
    51 
    54 
    52 set +x
    55 set +x
    53 echo "All done. Final installable is in $TARBALL ...";
    56 echo "All done. Final installable is in $TARBALL ...";
    54 
    57