archive=$1
shift
ziplist=`mktemp`
- find "$@" -xtype f \( -type f -not -executable \) -print > "$ziplist"; 7za a -tzip -mx=9 -i@"$ziplist" "$archive" || true
+ find "$@" -xtype f \( -executable -or -type l \) -print > "$ziplist"
+ 7za a -tzip -mx=9 -x@"$ziplist" "$archive" "$@" || true
+ zip -9y -@<"$ziplist" "$archive" || true
rm -f "$ziplist"
- find "$@" -xtype f \( -not \( -type f -not -executable \) \) -print | zip -9y -@ "$archive" || true
}
mkzip0()
fi
verbose export git_src_repo="$d0/$src" # skip hash-object
verbose "$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
- verbose mkzip "../../$dst" .
+ verbose mkzip "../../$dst" *
verbose cd ../..
verbose rm -rf Xonotic/temp
;;
;;
release-zip)
stamp=`cat Xonotic/stamp.txt`
+ # exe and dll files do not need +x, so this makes them eligible for 7zip compression too
+ chmod a-x *.exe *.dll
# need to use infozip for these (+x bits)
verbose mkzip Xonotic-$stamp-engine.zip \
Xonotic/*.dll \