]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
use good compression for autobuilds too to keep rsync diff sizes smaller
authorRudolf Polzer <divverent@alientrap.org>
Thu, 8 Mar 2012 20:44:18 +0000 (21:44 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 8 Mar 2012 20:44:18 +0000 (21:44 +0100)
misc/tools/all/release.subr

index 7c7c4550f9fa6abef1ec0d43b2a9c54362c99764..057175c619413bf9adcebaa17bc47559a82f72a3 100644 (file)
@@ -52,16 +52,8 @@ release_common()
        mkzipr()
        {
                archive=$1; shift
-               case "$RELEASETYPE" in
-                       release)
-                               sevenzipflags=-mx=9
-                               zipflags=-9
-                               ;;
-                       *)
-                               sevenzipflags=-mx=1
-                               zipflags=-1
-                               ;;
-               esac
+               sevenzipflags=-mx=9
+               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"
@@ -73,16 +65,8 @@ release_common()
        mkzip()
        {
                archive=$1; shift
-               case "$RELEASETYPE" in
-                       release)
-                               sevenzipflags=-mx=9
-                               zipflags=-9
-                               ;;
-                       *)
-                               sevenzipflags=-mx=1
-                               zipflags=-1
-                               ;;
-               esac
+               sevenzipflags=-mx=9
+               zipflags=-9
                ziplist=`mktemp`
                find "$@" -xtype f \( -executable -or -type l \) -print > "$ziplist"
                7za a -tzip $sevenzipflags -x@"$ziplist" "$archive" "$@" || true