- diff -u -urNZ pkgutils-5.36.orig/pkgmk.in pkgutils-5.36/pkgmk.in
- --- pkgutils-5.36.orig/pkgmk.in 2016-12-16 17:39:17.618299670 +0300
- +++ pkgutils-5.36/pkgmk.in 2016-12-16 18:14:23.036449733 +0300
- @@ -306,6 +306,16 @@
- cd $PKG
- + find . -type f -path "*/man/man*/*" -links +1 | while read FILE; do
- + if [ ! -e "$FILE.gz" ]; then
- + gzip < "$FILE" > "$FILE.gz"
- + find . -type f -path "*/man/man*/*" -samefile "$FILE" \
- + | xargs -n1 -Ixxxx sh -c \
- + "test xxxx != \"$FILE\" && ln \"$FILE.gz\" xxxx.gz && rm xxxx"
- + rm "$FILE"
- + fi
- + done
- +
- find . -type f -path "*/man/man*/*" | while read FILE; do
- if [ "$FILE" = "${FILE%%.gz}" ]; then
- gzip -9 "$FILE"
compress-hardlinked-mans.patch