]> git.sur5r.net Git - bacula/bacula/commitdiff
Revert patch from Ben to not compress man pages on Solaris fix #1801
authorEric Bollengier <eric@baculasystems.com>
Thu, 15 Dec 2011 10:06:54 +0000 (11:06 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:20 +0000 (14:50 +0200)
bacula/manpages/Makefile.in

index 489d5b7604cb579c78d45759cc819a0ee32b141d..bbbc6ae87bf2c0f81958e88cba2c1aa57b080941 100644 (file)
@@ -18,32 +18,26 @@ nothing:
 
 depend:
 
-compress-manpages: install-manpages
-
-install-manpages:
-       $(MKDIR) $(DESTDIR)/$(mandir)/man8 $(DESTDIR)/$(mandir)/man1
-       for I in ${MAN8}; do \
-            $(INSTALL_DATA) $$I $(DESTDIR)$(mandir)/man8/$$I; \
+install:
+       $(MKDIR) $(DESTDIR)/$(mandir)/man8
+       for I in ${MAN8}; \
+         do ($(RMF) $$I.gz; gzip -c $$I >$$I.gz; \
+            $(INSTALL_DATA) $$I.gz $(DESTDIR)$(mandir)/man8/$$I.gz; \
+            rm -f $$I.gz); \
        done
-       for I in ${MAN1}; do \
-            $(INSTALL_DATA) $$I $(DESTDIR)$(mandir)/man1/$$I; \
+       $(MKDIR) $(DESTDIR)/$(mandir)/man1
+       for I in ${MAN1}; \
+         do ($(RMF) $$I.gz; gzip -c $$I >$$I.gz; \
+            $(INSTALL_DATA) $$I.gz $(DESTDIR)$(mandir)/man1/$$I.gz; \
+            rm -f $$I.gz); \
        done
 
-install: install-manpages
-       if [ x@COMPRESS_MANPAGES@ = "xyes" ]; then \
-        for I in $(DESTDIR)/$(mandir)/man8/* $(DESTDIR)/$(mandir)/man1/*; do \
-         gzip -f $$I; \
-        done; \
-       fi
-
 uninstall:
        for I in ${MAN8}; \
-         do (rm -f $(DESTDIR)$(mandir)/man8/$$I.gz; \
-               rm -f $(DESTDIR)$(mandir)/man8/$$I); \
+         do (rm -f $(DESTDIR)$(mandir)/man8/$$I.gz); \
        done
        for I in ${MAN1}; \
-         do (rm -f $(DESTDIR)$(mandir)/man1/$$I.gz; \
-               rm -f $(DESTDIR)$(mandir)/man1/$$I); \
+         do (rm -f $(DESTDIR)$(mandir)/man1/$$I.gz); \
        done
 
 clean: