Author: viric
Date: Wed Mar  9 20:10:47 2011
New Revision: 26241
URL: https://svn.nixos.org/websvn/nix/?rev=26241&sc=1

Log:
Adding a manpage gzipping stage in the fixupPhase. This should go unnoticed,
but for the less disk space used.

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 19:41:51 2011        (r26240)
+++ nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh        Wed Mar 
 9 20:10:47 2011        (r26241)
@@ -719,6 +719,12 @@
         done;
     fi
 
+    if test -z "$dontBzipMan"; then
+        for f in $out/share/man/*/*; do
+            gzip -c $f > $f.gz && rm $f
+        done
+    fi
+
     # TODO: strip _only_ ELF executables, and return || fail here...
     if test -z "$dontStrip"; then
         stripDebugList=${stripDebugList:-lib lib64 libexec bin sbin}
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to