From 22d273247e5c4f7641eb915a63a97e9929b8129d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 9 Mar 2012 16:59:57 +0100 Subject: [PATCH] use infozip to make patches due to symlinks --- misc/tools/xzipdiff | 4 ++-- misc/tools/zipdiff | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/misc/tools/xzipdiff b/misc/tools/xzipdiff index eaaa1fa2..48ad7df6 100755 --- a/misc/tools/xzipdiff +++ b/misc/tools/xzipdiff @@ -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 diff --git a/misc/tools/zipdiff b/misc/tools/zipdiff index aa90c771..4b61c356 100755 --- a/misc/tools/zipdiff +++ b/misc/tools/zipdiff @@ -14,6 +14,7 @@ output= from= to= excludes= +ziptool="7za a -tzip -mx=9" while [ $# -gt 0 ]; do o=$1 @@ -35,6 +36,10 @@ while [ $# -gt 0 ]; do excludes="$excludes $1" shift ;; + -z) + ziptool=$1 + shift + ;; *) usage ;; @@ -163,8 +168,7 @@ case "$output" in ;; esac cd "$tempdir" - #zip -9r "$output" . - 7za a -tzip -mx=9 "$output" . + $ziptool "$output" . cd .. fi ;; -- 2.39.2