mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +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;
|
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...
|
||||||
|
Loading…
Reference in New Issue
Block a user