build-scripts/os2-buildbot.sh
changeset 13826 00960a08b393
parent 13821 0ee8e69e94e4
equal deleted inserted replaced
13825:7c2c79e87060 13826:00960a08b393
    17 
    17 
    18 ZIPFILE="$1"
    18 ZIPFILE="$1"
    19 if [ -z $1 ]; then
    19 if [ -z $1 ]; then
    20     ZIPFILE=sdl-os2.zip
    20     ZIPFILE=sdl-os2.zip
    21 fi
    21 fi
    22 ZIPDIR=buildbot
    22 ZIPDIR=buildbot/SDL
    23 
    23 
    24 set -e
    24 set -e
    25 set -x
    25 set -x
    26 
    26 
    27 cd `dirname "$0"`
    27 cd `dirname "$0"`
    28 cd ..
    28 cd ..
    29 
    29 
    30 rm -f $ZIPFILE
    30 rm -f $ZIPFILE
    31 wmake -f Makefile.os2
    31 wmake -f Makefile.os2
    32 rm -rf $ZIPDIR
    32 rm -rf $ZIPDIR
    33 mkdir $ZIPDIR
    33 mkdir -p $ZIPDIR
    34 chmod a+r SDL2.lib SDL2.dll
    34 chmod a+r SDL2.lib SDL2.dll
    35 mv SDL2.lib SDL2.dll $ZIPDIR/
    35 mv SDL2.lib SDL2.dll $ZIPDIR/
    36 cp -R include $ZIPDIR/
    36 cp -R include $ZIPDIR/
    37 zip -9r "$ZIPFILE" $ZIPDIR
    37 zip -9r "buildbot/$ZIPFILE" $ZIPDIR
    38 
    38 
    39 wmake -f Makefile.os2 distclean
    39 wmake -f Makefile.os2 distclean
    40 
    40 
    41 set +x
    41 set +x
    42 echo "All done. Final installable is in $ZIPFILE ...";
    42 echo "All done. Final installable is in $ZIPFILE ...";