summaryrefslogtreecommitdiff
path: root/infrastructure/makeparcels.pl.in
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure/makeparcels.pl.in')
-rwxr-xr-xinfrastructure/makeparcels.pl.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/infrastructure/makeparcels.pl.in b/infrastructure/makeparcels.pl.in
index ba22ad62..6a7ea99e 100755
--- a/infrastructure/makeparcels.pl.in
+++ b/infrastructure/makeparcels.pl.in
@@ -110,11 +110,19 @@ else
{
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 @@ EOF
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 @@ EOF
$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;