build-package.sh: do not try to gzip manpages that are already gzipped
Avoid warning and broken symlinks.
This commit is contained in:
parent
49139961ff
commit
8f042ae6b3
@ -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…
x
Reference in New Issue
Block a user