]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xzipdiff
use infozip to make patches due to symlinks
[xonotic/xonotic.git] / misc / tools / xzipdiff
index eaaa1fa259af4dc866c1c826d669ecf3dbc6d6d2..48ad7df690a57799ce15d01c8e4cd6fcbffbf562 100755 (executable)
@@ -31,7 +31,7 @@ makepatchname()
        echo "$prefix$fromversion"patch"$toversion$suffix"
 }
 
-zipdiff -f "$from" -t "$to" -o "$output" -x "$excludes"
+zipdiff -z "zip -9r" -f "$from" -t "$to" -o "$output" -x "$excludes"
 
 tempdir=`mktemp -d -t zipdiff.XXXXXX`
 cd "$tempdir"
@@ -45,7 +45,7 @@ for x in $excludes; do
        patchname=`makepatchname "$x" "$fromname" "$toname"`
        patchdir="c/$patchname"; patchdir=${patchdir%/*}
        mkdir -p "$patchdir"
-       zipdiff -f a/"$fromname" -t b/"$toname" -o c/"$patchname"
+       zipdiff -z "zip -9r" -f a/"$fromname" -t b/"$toname" -o c/"$patchname"
        if [ -f c/"$patchname" ]; then
                (cd c && zip -0r "$output" "$patchname")
        fi