Browse Source

build-package.sh: do not try to gzip manpages that are already gzipped

Avoid warning and broken symlinks.
emacs-27
Leonid Plyushch 6 years ago
parent
commit
ed5218cddf
  1. 5
      scripts/build/termux_step_massage.sh

5
scripts/build/termux_step_massage.sh

@ -58,7 +58,8 @@ termux_step_massage() {
if [ -d share/man ]; then
# Compress man pages with gzip:
find share/man -type f -print0 | xargs -r -0 gzip
find share/man -type f ! -iname \*.gz -print0 | xargs -r -0 gzip
# Update man page symlinks, e.g. unzstd.1 -> zstd.1:
while IFS= read -r -d '' file
do
@ -66,7 +67,7 @@ termux_step_massage() {
_link_value=$(readlink $file)
rm $file
ln -s $_link_value.gz $file.gz
done < <(find share/man -type l -print0)
done < <(find share/man -type l ! -iname \*.gz -print0)
fi
termux_create_subpackages

Loading…
Cancel
Save