Skip to content

Commit

Permalink
buildbot-os2.sh: Zip to a specific filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 8, 2017
1 parent 3776e50 commit 35ab010
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions extras/buildbot-os2.sh
Expand Up @@ -20,6 +20,8 @@

set -e

ZIPFILE="$1"

export WATCOM="/usr/local/share/watcom"
export PATH="$PATH:$WATCOM/binl"

Expand Down Expand Up @@ -64,8 +66,12 @@ fi

if [ "$OKAY" == "1" ]; then
echo 1>&2 "Build succeeded."
cp ../src/physfs.h .
zip -9r ../physfs-os2.zip physfs.lib physfs.h
if [ ! -z "$ZIPFILE" ]; then
rm -f "$ZIPFILE"
echo "Zipping to '$ZIPFILE' ..."
( cp ../src/physfs.h . && zip -9r ../physfs-os2.zip physfs.lib physfs.h ) || exit 1
echo "Done."
fi
exit 0
else
echo 1>&2 "Build failed."
Expand Down

0 comments on commit 35ab010

Please sign in to comment.