Ignore:
Timestamp:
Jan 27, 2008, 9:22:16 PM (12 years ago)
Author:
bruno
Message:

Adds support for supplemental files in projects (such as init scripts different for different distributions such as in collectl)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Base.pm

    r299 r300  
    9696my %extpkgdir = ();
    9797my %filteredfiles = ();
     98my %supfiles = ();
    9899
    99100if ((-f "$ENV{'PBCONF'}/$proj.pb") and (not defined $pbinit)) {
     
    102103    # Valid version names (optional)
    103104    # List of files to filter (optional)
    104     my ($defpkgdir, $extpkgdir, $version, $filteredfiles, $pkgv, $pkgt) = pb_conf_read("$ENV{'PBCONF'}/$proj.pb","defpkgdir","extpkgdir","version","filteredfiles","projver","projtag");
     105    my ($defpkgdir, $extpkgdir, $version, $filteredfiles, $supfiles, $pkgv, $pkgt) = pb_conf_read("$ENV{'PBCONF'}/$proj.pb","defpkgdir","extpkgdir","version","filteredfiles","supfiles","projver","projtag");
    105106    print "DEBUG: defpkgdir: ".Dumper($defpkgdir)."\n" if ($debug >= 1);
    106107    print "DEBUG: extpkgdir: ".Dumper($extpkgdir)."\n" if ($debug >= 1);
    107108    print "DEBUG: version: ".Dumper($version)."\n" if ($debug >= 1);
    108109    print "DEBUG: filteredfiles: ".Dumper($filteredfiles)."\n" if ($debug >= 1);
     110    print "DEBUG: supfiles: ".Dumper($supfiles)."\n" if ($debug >= 1);
    109111    die "Unable to find defpkgdir in $ENV{'PBCONF'}/$proj.pb" if (not defined $defpkgdir);
    110112    # Global
     
    115117    # Global
    116118    %filteredfiles = %$filteredfiles if (defined $filteredfiles);
     119    %supfiles = %$supfiles if (defined $supfiles);
    117120    #
    118121    # Get global Version/Tag
     
    226229#filteredfiles pkg1 = Makefile.PL
    227230#filteredfiles pkg1-doc = configure.in
     231#supfiles pkg1 = pkg1.init
    228232EOF
    229233        close(CONF);
     
    644648
    645649umask 0022;
    646 return($proj,$debug,$LOG,\%pbrc, \%filteredfiles, \%defpkgdir, \%extpkgdir);
     650return($proj,$debug,$LOG,\%pbrc, \%filteredfiles, \%supfiles, \%defpkgdir, \%extpkgdir);
    647651}
    648652
Note: See TracChangeset for help on using the changeset viewer.