From f79304aded06a194f1cb7c630173f9d57918dca6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Jul 2012 17:38:44 +0000 Subject: =?UTF-8?q?add=20*.xz=20and=20*.lzma=20recompress=20support=20to?= =?UTF-8?q?=20brp-compress.=20(rpm.org,=20Ville=20Skytt=C3=A4=20,=202009-08-03)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NEWS | 1 + brp-compress | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index df27c16..b474baf 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ - generate a perlapi- provide when libperl.so is found (inspirated from mdv (pok)) - sync brp-compress with upstream rpm.org: + o add *.xz and *.lzma recompress support o avoid some unnecessary command invocations in scripts - sync find-debuginfo.sh with upstream rpm.org: o add -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections diff --git a/brp-compress b/brp-compress index 25873ca..d8f9f03 100755 --- a/brp-compress +++ b/brp-compress @@ -24,9 +24,9 @@ do [ -f "$f" ] || continue case "$f" in - *.Z) gunzip $f; b=`echo $f | sed -e 's/\.Z$//'`;; - *.gz) gunzip $f; b=`echo $f | sed -e 's/\.gz$//'`;; - *.bz2) bunzip2 $f; b=`echo $f | sed -e 's/\.bz2$//'`;; + *.gz|*.Z) gunzip $f; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;; + *.bz2) bunzip2 $f; b=`echo $f | sed -e 's/\.bz2$//'`;; + *.xz|*.lzma) unxz $f; b=`echo $f | sed -e 's/\.\(xz\|lzma\)$//'`;; *) b=$f;; esac @@ -49,9 +49,9 @@ do for f in `find $d -type l` do - l=`ls -l $f | sed -e 's/.* -> //' -e 's/\.gz$//' -e 's/\.bz2$//' -e 's/\.Z$//'` + l=`ls -l $f | sed -e 's/.* -> //' -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//'` rm -f $f - b=`echo $f | sed -e 's/\.gz$//' -e 's/\.bz2$//' -e 's/\.Z$//'` + b=`echo $f | sed -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//'` ln -sf $l$COMPRESS_EXT $b$COMPRESS_EXT done done -- cgit v1.2.1