From: jkratoch <> Date: Fri, 29 Jan 2010 14:54:29 +0000 (+0000) Subject: +support .tar.xz X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=47c45bb93d00945199920f243f41b57da06db5ce;hp=ec2b1859b4f56c1daa2ac02d7a31d1cc8c3dad38;ds=sidebyside +support .tar.xz --- diff --git a/bin/diffgdbdir b/bin/diffgdbdir index 861ba02..4bf370c 100755 --- a/bin/diffgdbdir +++ b/bin/diffgdbdir @@ -24,6 +24,29 @@ function diffit diffed=true } +if [ -f "$1" -a ! -e "${1%.tar.xz}" ];then + ( + cd "$(dirname "$1")" + tar xJf "$(basename "$1")" + ) + set "${1%.tar.xz}" "$2" + if [ ! -d "$1" ];then + echo "! $1" + exit 1 + fi +fi +if [ -f "$2" -a ! -e "${2%.tar.xz}" ];then + ( + cd "$(dirname "$2")" + tar xJf "$(basename "$2")" + ) + set "$1" "${2%.tar.xz}" + if [ ! -d "$2" ];then + echo "! $2" + exit 1 + fi +fi + for arch in x86_64 i386;do if [ -d $1-$arch ];then diffit $1-$arch $2-$arch @@ -37,6 +60,7 @@ for arch in x86_64 i386;do done if [ -d $1/out ];then diffit $1 $2 + diffed=true fi if ! $diffed;then echo "NOT FOUND: $1 $2"