setup-hooks: compress-man-pages.sh: Do not attempt to compress .xz files
This commit is contained in:
parent
8472d44b82
commit
51f21e91e8
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ compressManPages() {
|
||||||
echo "gzipping man pages under $dir/share/man/"
|
echo "gzipping man pages under $dir/share/man/"
|
||||||
|
|
||||||
# Compress all uncompressed manpages. Don't follow symlinks, etc.
|
# Compress all uncompressed manpages. Don't follow symlinks, etc.
|
||||||
find "$dir"/share/man/ -type f -a '!' -regex '.*\.\(bz2\|gz\)$' -print0 \
|
find "$dir"/share/man/ -type f -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 \
|
||||||
| while IFS= read -r -d $'\0' f
|
| while IFS= read -r -d $'\0' f
|
||||||
do
|
do
|
||||||
if gzip -c -n "$f" > "$f".gz; then
|
if gzip -c -n "$f" > "$f".gz; then
|
||||||
|
@ -20,7 +20,7 @@ compressManPages() {
|
||||||
done
|
done
|
||||||
|
|
||||||
# Point symlinks to compressed manpages.
|
# Point symlinks to compressed manpages.
|
||||||
find "$dir"/share/man/ -type l -a '!' -regex '.*\.\(bz2\|gz\)$' -print0 \
|
find "$dir"/share/man/ -type l -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 \
|
||||||
| sort -z \
|
| sort -z \
|
||||||
| while IFS= read -r -d $'\0' f
|
| while IFS= read -r -d $'\0' f
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in a new issue