]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Attempt a little trick to make releases a bit smaller
authormerlijn <mhofstra@gmail.com>
Fri, 20 Apr 2012 21:21:01 +0000 (23:21 +0200)
committermerlijn <mhofstra@gmail.com>
Fri, 20 Apr 2012 21:21:01 +0000 (23:21 +0200)
misc/tools/all/release.subr

index 3ef2321d07aa2c75dc203745ff75b597c59a63f8..69f54b241c3581ac57dbc78efd2b9ccf2b11917d 100644 (file)
@@ -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"