[Box Backup-commit] COMMIT r2385 - in box/trunk: . infrastructure

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Sun Nov 23 15:52:44 GMT 2008


Author: jamesog
Date: 2008-11-23 15:52:43 +0000 (Sun, 23 Nov 2008)
New Revision: 2385

Modified:
   box/trunk/infrastructure/makeparcels.pl.in
   box/trunk/parcels.txt
Log:
Hook the man pages into the build/install system. Man pages are now included in the client and server parcels and installed to $prefix/man.


Modified: box/trunk/infrastructure/makeparcels.pl.in
===================================================================
--- box/trunk/infrastructure/makeparcels.pl.in	2008-11-23 01:25:09 UTC (rev 2384)
+++ box/trunk/infrastructure/makeparcels.pl.in	2008-11-23 15:52:43 UTC (rev 2385)
@@ -110,11 +110,19 @@
 {
 	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 "test:\trelease/common/test\n\nrelease/common/test:\n\t./runtest.pl ALL release\n\n";
 
+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)
+
+EOF
+
 my $release_flag = BoxPlatform::make_flag('RELEASE');
 
 for my $parcel (@parcels)
@@ -193,6 +201,24 @@
 
 			push @parcel_deps, "$dir/$filename";
 		}
+		elsif($type eq 'man')
+		{
+			print MAKE <<EOF;
+$dir/${name}.gz: docs/man/${name}.gz
+	mkdir -p $dir
+	cp -p docs/man/${name}.gz $dir
+
+EOF
+			# Only build the docs if we're building from trunk.
+			# Releases have the docs pre-made.
+			print MAKE <<EOF if $product_version =~ /trunk_[0-9]+/;
+.PHONY: docs/man/${name}.gz
+docs/man/${name}.gz: docs/bb-man.xsl
+	(cd docs; \$(MAKE) $name)
+
+EOF
+			push @parcel_deps, "$dir/${name}.gz";
+		}
 	}
 
 	print MAKE <<EOF;
@@ -232,6 +258,13 @@
 			$name =~ s{.*/}{};
 		}
 
+		if ($type eq 'man')
+		{
+			$name =~ /([0-9])$/;
+			$dest = "man/man$1";
+			$name =~ s/$/\.gz/;
+		}
+
 		if ($install and not $target_windows)
 		{
 			my $local_install_dir = $install_into_dir;

Modified: box/trunk/parcels.txt
===================================================================
--- box/trunk/parcels.txt	2008-11-23 01:25:09 UTC (rev 2384)
+++ box/trunk/parcels.txt	2008-11-23 15:52:43 UTC (rev 2385)
@@ -9,6 +9,11 @@
 	bin bbackupctl
 	script bin/bbackupd/bbackupd-config
 	noinstall script LICENSE.txt
+	man bbackupd.8
+	man bbackupquery.8
+	man bbackupctl.8
+	man bbackupd-config.8
+	man bbackupd.conf.5
 
 ONLY:mingw32,mingw32msvc
 	script bin/bbackupd/win32/installer.iss 
@@ -37,6 +42,13 @@
 	script bin/bbstored/bbstored-config
 	script lib/raidfile/raidfile-config
 	noinstall script LICENSE.txt
+	man bbstored.8
+	man bbstoreaccounts.8
+	man bbstored-certs.8
+	man bbstored-config.8
+	man raidfile-config.8
+	man bbstored.conf.5
+	man raidfile.conf.5
 
 ONLY:SunOS
 	script contrib/solaris/bbstored-manifest.xml lib/svc/manifest




More information about the Boxbackup-commit mailing list