Changeset 1961


Ignore:
Timestamp:
02/21/17 21:01:14 (7 years ago)
Author:
nanardon
Message:

Split HTML from POD by man section

Location:
trunk/LATMOS-Accounts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/Makefile.PL

    r1865 r1961  
    9595            DATADIR             => '/usr/share/latmos-accounts', 
    9696            DESTDATADIR         => '$(DESTDIR)$(DATADIR)', 
     97            MAN5PODS            => join(' ', <man/man5/*.pod>), 
     98            MAN8PODS            => join(' ', <man/man8/*.pod>), 
    9799        }, 
    98100        MAN1PODS        => { 
     
    107109            } <man/man?/*.pod>, (grep { ! /~$/ } <bin/*>) 
    108110        }, 
    109  
    110111); 
    111112 
     
    174175\t latmos-accounts.spec 
    175176 
    176 podhtml: \$(MAN1PODS) \$(MAN3PODS) 
     177podhtml: \$(MAN5PODS) \$(MAN8PODS) \$(MAN3PODS) \$(MAN1PODS) 
    177178\tmkdir html || : 
    178 \trm -f html/* 
    179 \tperl scripts/pod2xhtml.pl \$(MAN1PODS) \$(MAN3PODS) 
     179\trm -fr html/* 
     180\tperl scripts/pod2xhtml.pl man1 \$(MAN1PODS) 
     181\tperl scripts/pod2xhtml.pl man3 \$(MAN3PODS) 
     182\tperl scripts/pod2xhtml.pl man5 \$(MAN5PODS) 
     183\tperl scripts/pod2xhtml.pl man8 \$(MAN8PODS) 
    180184 
    181185EOF 
  • trunk/LATMOS-Accounts/scripts/pod2xhtml.pl

    r1009 r1961  
    66use Pod::Hyperlink::BounceURL; 
    77use Pod::Checker; 
    8  
    98 
    109my $linkparser = new Pod::Hyperlink::BounceURL; 
     
    1615); 
    1716 
    18 my @files = glob('man/*.pod'); 
     17my $dest = shift(@ARGV); 
     18 
     19if (! -d "html/$dest") { 
     20   mkdir "html/$dest" || die "Cannot create html/$dest: $!"; 
     21} 
    1922 
    2023foreach my $f (@ARGV) { 
     
    3033    $parser->parse_from_file(  
    3134       $f, 
    32        "html/$file", 
     35       "html/$dest/$file", 
    3336    ); 
    3437} 
Note: See TracChangeset for help on using the changeset viewer.