mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
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:
parent
65c78a3222
commit
c06046e5ef
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user