pkgmeek: fix the compression of manpages
This commit is contained in:
parent
1c40c4f6fb
commit
be1a0eca6e
@ -173,7 +173,7 @@ if [ "$pkg_utd" = 0 ] || [ "$PKGMK_FORCE" = "yes" ]; then
|
||||
info "Build succeeded. Moving on to compression." ||
|
||||
{ error "Unsuccessful build!"; exit "$E_BUILD"; }
|
||||
|
||||
[ -f "$PKGMK_ROOT/.nostrip" ] && ns_filter="| grep -v -f .nostrip"
|
||||
[ -f "$PKGMK_ROOT/.nostrip" ] && ns_filter="| grep -v -f $PKGMK_ROOT/.nostrip"
|
||||
find pkg -type f $ns_filter | while read -r f; do
|
||||
case $(file -b "$f") in
|
||||
*ELF*executable*not\ stripped*) strip --strip-all "$f" ;;
|
||||
@ -182,8 +182,8 @@ if [ "$pkg_utd" = 0 ] || [ "$PKGMK_FORCE" = "yes" ]; then
|
||||
esac
|
||||
done
|
||||
|
||||
find pkg -type f | grep "/man/man*/" | grep -v '.gz$' | xargs -r -I{} gzip -9 '{}'
|
||||
find pkg -xtype l | grep "/man/man*/" \
|
||||
find pkg -type f -path "*/man/man*/*" | grep -v '.gz$' | xargs -r -I{} gzip -9 '{}'
|
||||
find pkg -xtype l -path "*/man/man*/*" \
|
||||
| xargs -x -r -n1 sh -c "ln -sf \"\$(readlink -n '{}')\" '{}'"
|
||||
|
||||
[ $UID = 0 ] || fake_uid="--uid 0 --gid 0"
|
||||
@ -280,7 +280,7 @@ parse_options() {
|
||||
-in|--ignore-new) PKGMK_IGNORE_NEW="yes" ;;
|
||||
-im|--ignore-md5sum) PKGMK_IGNORE_MD5="yes" ;;
|
||||
-is|--ignore-signature) PKGMK_IGNORE_SIG="yes" ;;
|
||||
-ns|--no-strip) touch "$PKGMK_ROOT/.nostrip" ;;
|
||||
-ns|--no-strip) echo ".*" >> "$PKGMK_ROOT/.nostrip" ;;
|
||||
-f|--force) PKGMK_FORCE="yes" ;;
|
||||
-kw|--keep-work) PKGMK_KEEP_WORK="yes" ;;
|
||||
-i|--install) PKGMK_INSTALL_COMMAND="/usr/bin/pkgadd" ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user