Changeset 989 in ProjectBuilder for devel/pb-modules/Makefile.PL


Ignore:
Timestamp:
Feb 23, 2010, 8:22:13 AM (14 years ago)
Author:
Bruno Cornec
Message:

r3705@localhost: bruno | 2010-02-22 01:48:44 +0100

  • Improved pod format for pb.conf.pod
  • man page generated from pod now included in Makefile.PL and packages
  • Move the pod file into the etc conf dir
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/Makefile.PL

    r969 r989  
    3232    my $text ="";
    3333
    34     # Grab out any CONFDIR param
     34    # Grab out any CONFDIR or MANDIR param
    3535    my $confdir = undef;
     36    my $mandir = undef;
    3637
    3738    while (my $arg = shift @ARGV) {
     
    3940        if ($key =~ /^CONFDIR$/) {
    4041            $confdir = $value;
     42        } elsif ($key =~ /^MANDIR$/) {
     43            $mandir = $value;
    4144        }
    4245    }
    4346
    4447    my $etcdir = $confdir || "/usr/local/etc/pb";
     48    my $mandir = $mandir || "/usr/local/share/man";
    4549
    4650    # Use that conf dir info to modify Distribution.pm
     
    5155    $text .= "\t".'chmod 755 $(DESTDIR)'."$etcdir\n";
    5256    $text .= "\t".'cp etc/pb.conf $(DESTDIR)'."$etcdir\n";
     57
     58    # Produce the man page for pb.conf
     59    $text .= "\t".'mkdir -p $(DESTDIR)'."$mandir/man5\n";
     60    $text .= "\t".'pod2man etc/pb.conf.pod > $(DESTDIR)'."$mandir/man5/pb.conf.5\n";
    5361    return($text);
    5462}
Note: See TracChangeset for help on using the changeset viewer.