[Box Backup-commit] COMMIT r3000 - box/trunk/infrastructure

subversion at boxbackup.org subversion at boxbackup.org
Sun Sep 25 19:39:43 BST 2011


Author: chris
Date: 2011-09-25 19:39:42 +0100 (Sun, 25 Sep 2011)
New Revision: 3000

Modified:
   box/trunk/infrastructure/makeparcels.pl.in
Log:
Don't regenerate zipped manpages unless needed.


Modified: box/trunk/infrastructure/makeparcels.pl.in
===================================================================
--- box/trunk/infrastructure/makeparcels.pl.in	2011-09-25 18:39:00 UTC (rev 2999)
+++ box/trunk/infrastructure/makeparcels.pl.in	2011-09-25 18:39:42 UTC (rev 3000)
@@ -220,9 +220,10 @@
 EOF
 			# Releases have the docs pre-made, but users
 			# may want to rebuild them for some reason.
+			my $docbook_source = "docs/docbook/${name}";
+			$docbook_source =~ s/\.[58]$/.xml/;
 			print MAKE <<EOF;
-.PHONY: docs/man/${name}.gz
-docs/man/${name}.gz:
+docs/man/${name}.gz: $docbook_source docs/docbook/bb-man.xsl
 	cd docs; \$(MAKE) man/${name}.gz
 
 EOF
@@ -238,9 +239,9 @@
 EOF
 			# Releases have the docs pre-made, but users
 			# may want to rebuild them for some reason.
+			my $docbook_source = "docs/docbook/${name}.xml";
 			print MAKE <<EOF;
-.PHONY: docs/htmlguide/man-html/${name}.html
-docs/htmlguide/man-html/${name}.html:
+docs/htmlguide/man-html/${name}.html: $docbook_source docs/docbook/bb-nochunk-book.xsl
 	cd docs; \$(MAKE) htmlguide/man-html/${name}.html
 
 EOF




More information about the Boxbackup-commit mailing list