Skip to content

Commit

Permalink
brp-compress: Handle zstd compressed man/info pages
Browse files Browse the repository at this point in the history
Handle zstd compressed man/info pages in brp-compress

Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
  • Loading branch information
berolinux committed Jan 9, 2020
1 parent 5322cdb commit 2b28ff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/brp-compress
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ do
*.gz|*.Z) gunzip -f $f; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;;
*.bz2) bunzip2 -f $f; b=`echo $f | sed -e 's/\.bz2$//'`;;
*.xz|*.lzma) unxz -f $f; b=`echo $f | sed -e 's/\.\(xz\|lzma\)$//'`;;
*.zst|*.zstd) unzstd -f --rm $f; b=`echo $f | sed -e 's/\.\(zst\|zstd\)$//'`;;
*) b=$f;;
esac

Expand All @@ -51,9 +52,9 @@ do

for f in `find $d -type l`
do
l=`ls -l $f | sed -e 's/.* -> //' -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//'`
l=`ls -l $f | sed -e 's/.* -> //' -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\|zst\|zstd\)$//'`
rm -f $f
b=`echo $f | sed -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//'`
b=`echo $f | sed -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\|zst\|zstd\)$//'`
ln -sf $l$COMPRESS_EXT $b$COMPRESS_EXT
done
done

0 comments on commit 2b28ff7

Please sign in to comment.