From d1f8c9df35c2d5e5bf452eb12f074bfd7dd8dba8 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 8 Jul 2017 20:20:03 -0400 Subject: [PATCH] buildbot-os2: zip to subdir to avoid tarbombing. --- extras/buildbot-os2.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extras/buildbot-os2.sh b/extras/buildbot-os2.sh index 12b9063..8cf15af 100755 --- a/extras/buildbot-os2.sh +++ b/extras/buildbot-os2.sh @@ -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