Skip to content

Commit

Permalink
buildbot-os2: zip to subdir to avoid tarbombing.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 9, 2017
1 parent e9e0ca8 commit d1f8c9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extras/buildbot-os2.sh
Expand Up @@ -67,9 +67,10 @@ fi
if [ "$OKAY" == "1" ]; then
echo 1>&2 "Build succeeded."
if [ ! -z "$ZIPFILE" ]; then
rm -f "$ZIPFILE"
rm -rf "$ZIPFILE" physfs-os2
mkdir -p physfs-os2
echo "Zipping to '$ZIPFILE' ..."
( cp ../src/physfs.h . && zip -9r "$ZIPFILE" physfs.lib physfs.h ) || exit 1
( cp ../src/physfs.h physfs.lib physfs-os2 && zip -9r "$ZIPFILE" physfs-os2 ) || exit 1
echo "Done."
fi
exit 0
Expand Down

0 comments on commit d1f8c9d

Please sign in to comment.