Improving a bit the manpage gzip code. I decided to gzip hard links and soft

links, as nix-store --optimise can care better later.


svn path=/nixpkgs/branches/stdenv-updates/; revision=26242
This commit is contained in:
Lluís Batlle i Rossell 2011-03-09 22:17:18 +00:00
parent 65c78a3222
commit c06046e5ef

View File

@ -719,10 +719,18 @@ fixupPhase() {
done;
fi
if test -z "$dontBzipMan"; then
for f in $out/share/man/*/*; do
gzip -c $f > $f.gz && rm $f
if test -z "$dontGzipMan"; then
GLOBIGNORE=.:..:*.gz:*.bz2
for f in $out/share/man/*/* $out/share/man/*/*/*; do
if test -f $f; then
if gzip -c $f > $f.gz; then
rm $f
else
rm $f.gz
fi
fi
done
unset GLOBIGNORE
fi
# TODO: strip _only_ ELF executables, and return || fail here...