X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=misc%2Ftools%2Fall%2Frelease.subr;h=69f54b241c3581ac57dbc78efd2b9ccf2b11917d;hb=de132573a0e22933872fda961700c7774276cf4b;hp=3ef2321d07aa2c75dc203745ff75b597c59a63f8;hpb=d11c26ea108cb7e52fbfdc53fb32c6870e6bb73d;p=xonotic%2Fxonotic.git diff --git a/misc/tools/all/release.subr b/misc/tools/all/release.subr index 3ef2321d..69f54b24 100644 --- a/misc/tools/all/release.subr +++ b/misc/tools/all/release.subr @@ -60,7 +60,7 @@ release_common() zipflags=-9 find "$@" -exec touch -d "2001-01-01 01:01:01 +0000" {} \+ # ugly hack to make the pk3 files rsync-friendly ziplist=`mktemp` - find "$@" -xtype f \( -executable -or -type l \) -print > "$ziplist" + find "$@" -xtype f \( -executable -or -type l \) -print | sed 's,\([./][^./]*$\),\1 \1,' | sort -k2 | cut -d\ -f1 > "$ziplist" 7za a -tzip $sevenzipflags -x@"$ziplist" "$archive" "$@" || true zip $zipflags -y -@<"$ziplist" "$archive" || true rm -f "$ziplist"