Author: viric
Date: Wed Mar 9 22:17:18 2011
New Revision: 26242
URL: https://svn.nixos.org/websvn/nix/?rev=26242&sc=1
Log:
Improving a bit the manpage gzip code. I decided to gzip hard links and soft
links, as nix-store --optimise can care better later.
Modified:
nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh
Modified: nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh
==============================================================================
--- nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh Wed Mar
9 20:10:47 2011 (r26241)
+++ nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh Wed Mar
9 22:17:18 2011 (r26242)
@@ -719,10 +719,18 @@
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...
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits