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; done;
fi fi
if test -z "$dontBzipMan"; then if test -z "$dontGzipMan"; then
for f in $out/share/man/*/*; do GLOBIGNORE=.:..:*.gz:*.bz2
gzip -c $f > $f.gz && rm $f 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 done
unset GLOBIGNORE
fi fi
# TODO: strip _only_ ELF executables, and return || fail here... # TODO: strip _only_ ELF executables, and return || fail here...