From: merlijn Date: Fri, 20 Apr 2012 21:21:01 +0000 (+0200) Subject: Attempt a little trick to make releases a bit smaller X-Git-Tag: xonotic-v0.7.0~56 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=de132573a0e22933872fda961700c7774276cf4b;p=xonotic%2Fxonotic.git Attempt a little trick to make releases a bit smaller --- 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"