From 65c78a322252fc4ddb51348f2d2fb9d1a292ba2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 9 Mar 2011 20:10:47 +0000 Subject: [PATCH] Adding a manpage gzipping stage in the fixupPhase. This should go unnoticed, but for the less disk space used. svn path=/nixpkgs/branches/stdenv-updates/; revision=26241 --- pkgs/stdenv/generic/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 4c772dcb4780..575e6046473a 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -719,6 +719,12 @@ fixupPhase() { 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}