diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-07-27 17:38:44 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-07-27 17:38:44 +0000 |
commit | f79304aded06a194f1cb7c630173f9d57918dca6 (patch) | |
tree | d3597a6a70f324bc66ad01cfe24156d6f032e0bf /brp-compress | |
parent | e3e64bb4e7fb8b37af24dcc9912652e68b9c9a7d (diff) | |
download | rpm-setup-f79304aded06a194f1cb7c630173f9d57918dca6.tar rpm-setup-f79304aded06a194f1cb7c630173f9d57918dca6.tar.gz rpm-setup-f79304aded06a194f1cb7c630173f9d57918dca6.tar.bz2 rpm-setup-f79304aded06a194f1cb7c630173f9d57918dca6.tar.xz rpm-setup-f79304aded06a194f1cb7c630173f9d57918dca6.zip |
add *.xz and *.lzma recompress support to brp-compress.
(rpm.org, Ville Skyttä <ville.skytta@iki.fi>, 2009-08-03)
Diffstat (limited to 'brp-compress')
-rwxr-xr-x | brp-compress | 10 |
1 files changed, 5 insertions, 5 deletions
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 |