Ignore:
Timestamp:
23/11/2008 15:52:43 (4 years ago)
Author:
jamesog
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/makeparcels.pl.in

    r2380 r2385  
    111111        print MAKE "\tfind release debug -type f -exec rm -f {} \\;\n"; 
    112112} 
     113print MAKE "\trm -rf docs/*.[58] docs/bb-man.xsl docs/man\n" if $product_version =~ /trunk_[0-9]+/; 
    113114 
    114115print MAKE "\n"; 
    115116 
    116117print MAKE "test:\trelease/common/test\n\nrelease/common/test:\n\t./runtest.pl ALL release\n\n"; 
     118 
     119print MAKE <<EOF if $product_version =~ /trunk_[0-9]+/; 
     120.PHONY: docs/bb-man.xsl 
     121docs/bb-man.xsl: 
     122        (cd docs; \$(MAKE) bb-man.xsl; if [ ! -d man ]; then mkdir man; fi) 
     123 
     124EOF 
    117125 
    118126my $release_flag = BoxPlatform::make_flag('RELEASE'); 
     
    194202                        push @parcel_deps, "$dir/$filename"; 
    195203                } 
     204                elsif($type eq 'man') 
     205                { 
     206                        print MAKE <<EOF; 
     207$dir/${name}.gz: docs/man/${name}.gz 
     208        mkdir -p $dir 
     209        cp -p docs/man/${name}.gz $dir 
     210 
     211EOF 
     212                        # Only build the docs if we're building from trunk. 
     213                        # Releases have the docs pre-made. 
     214                        print MAKE <<EOF if $product_version =~ /trunk_[0-9]+/; 
     215.PHONY: docs/man/${name}.gz 
     216docs/man/${name}.gz: docs/bb-man.xsl 
     217        (cd docs; \$(MAKE) $name) 
     218 
     219EOF 
     220                        push @parcel_deps, "$dir/${name}.gz"; 
     221                } 
    196222        } 
    197223 
     
    231257                        # remove path from script name 
    232258                        $name =~ s{.*/}{}; 
     259                } 
     260 
     261                if ($type eq 'man') 
     262                { 
     263                        $name =~ /([0-9])$/; 
     264                        $dest = "man/man$1"; 
     265                        $name =~ s/$/\.gz/; 
    233266                } 
    234267 
Note: See TracChangeset for help on using the changeset viewer.