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

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Sat Mar 28 14:01:40 GMT 2009


Author: chris
Date: 2009-03-28 14:01:39 +0000 (Sat, 28 Mar 2009)
New Revision: 2475

Modified:
   box/trunk/infrastructure/makeparcels.pl.in
Log:
Use the Makefile in docs/ to build and clean documentation.

Don't rely on location of bb-man.xsl any more.


Modified: box/trunk/infrastructure/makeparcels.pl.in
===================================================================
--- box/trunk/infrastructure/makeparcels.pl.in	2009-03-28 12:25:05 UTC (rev 2474)
+++ box/trunk/infrastructure/makeparcels.pl.in	2009-03-28 14:01:39 UTC (rev 2475)
@@ -110,19 +110,21 @@
 {
 	print MAKE "\tfind release debug -type f -exec rm -f {} \\;\n";
 }
-print MAKE "\trm -rf docs/*.[58] docs/bb-man.xsl docs/man\n" if $product_version =~ /trunk_[0-9]+/;
 
-print MAKE "\n";
+print MAKE <<__END_OF_FRAGMENT;
+	\$(MAKE) -C docs clean
 
-print MAKE "test:\trelease/common/test\n\nrelease/common/test:\n\t./runtest.pl ALL release\n\n";
+test:	release/common/test
 
-print MAKE <<EOF if $product_version =~ /trunk_[0-9]+/;
-.PHONY: docs/bb-man.xsl
-docs/bb-man.xsl:
-	(cd docs; \$(MAKE) bb-man.xsl; if [ ! -d man ]; then mkdir man; fi)
+release/common/test:
+	./runtest.pl ALL release
 
-EOF
+.PHONY: docs
+docs:
+	\$(MAKE) -C docs
 
+__END_OF_FRAGMENT
+
 my $release_flag = BoxPlatform::make_flag('RELEASE');
 
 for my $parcel (@parcels)
@@ -209,12 +211,12 @@
 	cp -p docs/man/${name}.gz $dir
 
 EOF
-			# Only build the docs if we're building from trunk.
-			# Releases have the docs pre-made.
+			# Releases have the docs pre-made, but users
+			# may want to rebuild them for some reason.
 			print MAKE <<EOF;
 .PHONY: docs/man/${name}.gz
-docs/man/${name}.gz: docs/bb-man.xsl
-	(cd docs; \$(MAKE) $name)
+docs/man/${name}.gz:
+	\$(MAKE) -C docs man/${name}.gz
 
 EOF
 			push @parcel_deps, "$dir/${name}.gz";




More information about the Boxbackup-commit mailing list