buildbot-os2: zip to subdir to avoid tarbombing.

This commit is contained in:
Ryan C. Gordon 2017-07-08 20:20:03 -04:00
parent e9e0ca81de
commit d1f8c9df35
1 changed files with 3 additions and 2 deletions

View File

@ -67,9 +67,10 @@ fi
if [ "$OKAY" == "1" ]; then if [ "$OKAY" == "1" ]; then
echo 1>&2 "Build succeeded." echo 1>&2 "Build succeeded."
if [ ! -z "$ZIPFILE" ]; then if [ ! -z "$ZIPFILE" ]; then
rm -f "$ZIPFILE" rm -rf "$ZIPFILE" physfs-os2
mkdir -p physfs-os2
echo "Zipping to '$ZIPFILE' ..." 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." echo "Done."
fi fi
exit 0 exit 0