Changeset 1442


Ignore:
Timestamp:
Mar 27, 2012, 2:44:37 PM (7 years ago)
Author:
bruno
Message:
  • Addes extdir to the filtering system as now mandatory in pb.
Location:
projects/mondorescue/pbconf/branches/3.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • projects/mondorescue/pbconf/branches/3.0/mindi/pbinit

    r554 r1442  
    1515$pb{'date'} = "PBDATE";
    1616$pb{'repo'} = "PBREPO";
     17$pb{'extdir'} = "PBEXTDIR";
    1718
    1819# Export documentation to generate what is needed
  • projects/mondorescue/pbconf/branches/3.0/mondo/pbinit

    r1226 r1442  
    1010use ProjectBuilder::Env;
    1111use File::Basename;
     12use Data::Dumper;
    1213
    1314pb_system("./bootstrap","Bootstraping MondoRescue","verbose");
     
    1516pb_mkdir_p("docs/man");
    1617my %pb;
    17 $pb{'pkg'} = "PBPKG";
    18 $pb{'ver'} = "PBVER";
    1918$pb{'tag'} = "PBTAG";
    2019$pb{'rev'} = "PBREV";
     20$pb{'ver'} = "PBVER";
     21$pb{'pkg'} = "PBPKG";
    2122$pb{'proj'} = "PBPROJ";
    2223$pb{'date'} = "PBDATE";
    2324$pb{'repo'} = "PBREPO";
     25$pb{'extdir'} = "PBEXTDIR";
    2426
    2527# Action needs to be pbinit
     
    3840my $ptr = pb_get_filters($pb{'pkg'});
    3941foreach my $f ((<docs/man/*.8>),(<docs/en/*.sgml>)) {
     42    #print "LOG: filtering $f\n";
     43    #print Dumper(%pb);
     44    #print Dumper($ptr);
    4045    pb_filter_file_inplace($ptr,$f,\%pb);
    4146}
  • projects/mondorescue/pbconf/branches/3.0/pbfilter/all.pbf

    r1432 r1442  
    1616filter PBDATE = $pb->{'date'}
    1717
     18# PBEXTDIR is replaced by the date ($pb->{'extdir'} in code)
     19filter PBEXTDIR = $pb->{'extdir'}
     20
    1821# PBLOG is replaced by the changelog if value is yes
    1922filter PBLOG = yes
  • projects/mondorescue/pbconf/branches/3.0/website/pbinit

    r1062 r1442  
    2020$pb{'date'} = "PBDATE";
    2121$pb{'repo'} = "PBREPO";
     22$pb{'extdir'} = "PBEXTDIR";
    2223
    2324# Action needs to be pbinit
Note: See TracChangeset for help on using the changeset viewer.