From 182db49f9009f361473da8c27b100be38dc84992 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 30 Oct 2006 10:45:43 +0000 Subject: Use -f to gzip so that it compresses files with more than one link git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@240 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- bin/weblogs-compress | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/weblogs-compress b/bin/weblogs-compress index fbd810c..03c90fe 100755 --- a/bin/weblogs-compress +++ b/bin/weblogs-compress @@ -36,7 +36,9 @@ Dir.glob("*").each{ |client| STDERR.puts("Not compressing #{filename}: Target exists."); else puts "Compressing #{filename}" if $VERBOSE - system("gzip -9 #{filename}") or throw("system(gzip -9 #{filename}) failed.") + # the -f is necessary so that gzip will compress files even + # if they have multiple links + system("gzip -f -9 #{filename}") or throw("system(gzip -f -9 #{filename}) failed.") end } } -- cgit v1.2.3