[Lunar-commits] r19131 - lunar/trunk/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Mon Mar 6 05:38:45 UTC 2006


Author: sofar
Date: 2006-03-06 05:38:41 +0000 (Mon, 06 Mar 2006)
New Revision: 19131

Modified:
   lunar/trunk/var/lib/lunar/functions/misc.lunar
Log:
Making this algorithm a bit more agressive - compress all xxx.n files with gzip.


Modified: lunar/trunk/var/lib/lunar/functions/misc.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/misc.lunar	2006-03-06 05:36:02 UTC (rev 19130)
+++ lunar/trunk/var/lib/lunar/functions/misc.lunar	2006-03-06 05:38:41 UTC (rev 19131)
@@ -149,7 +149,7 @@
 	if [[ "${COMPRESS_MANPAGES:=on}" == "on" ]]; then
 		while read FILE; do
 			if [[ -f "$FILE" ]] ; then
-				if echo "$FILE" | grep '^/usr/share/man/man' | grep -q -v '\.gz$'; then
+				if echo "$FILE" | grep '^/usr/share/man/.*\..$' | grep -q -v '\.gz$'; then
 					gzip -9 < "$FILE" > "$FILE.gz"
 					debug_msg "Compressing man page \"$FILE\""
 					rm -f "$FILE"



More information about the Lunar-commits mailing list