Changeset 1130 in ProjectBuilder for devel/pb/lib


Ignore:
Timestamp:
Dec 22, 2010, 4:01:42 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • First attempt to fix both #74 and #10 by adding support for additional files under a pbsrc dir, that can be manipulated at build time.
Location:
devel/pb/lib/ProjectBuilder
Files:
2 edited

Legend:

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

    r1113 r1130  
    555555filter PBDATE = \$pb->{'date'}
    556556
    557 # PBPATCHSRC is replaced by the patches names if value is yes
     557# PBPATCHSRC is replaced by the patches names if value is yes. Patches are located under the pbpatch dir of the pkg.
    558558#filter PBPATCHSRC = yes
    559559
    560560# PBPATCHCMD is replaced by the patches commands if value is yes
    561561#filter PBPATCHCMD = yes
     562
     563# PBMULTISRC is replaced by the sources names if value is yes. Sources are located under the pbsrc dir of the pkg.
     564#filter PBMULTISRC = yes
    562565
    563566# PBTAG is replaced by the tag (\$pb->{'tag'} in code)
  • devel/pb/lib/ProjectBuilder/Filter.pm

    r1044 r1130  
    177177            }
    178178            $tmp = "";
     179        } elsif (($s =~ /^PBMULTISRC$/) && ($line =~ /^PBMULTISRC$/)) {
     180            pb_log(3,"DEBUG filtering PBMULTISRC\n");
     181            my $i = 1;
     182            foreach my $p (split(/,/,$pb->{'sources'}->{$pb->{'tuple'}})) {
     183                print DEST "Source$i:         ".basename($p)."\n";
     184                $i++;
     185            }
     186            $tmp = "";
    179187        } elsif (($s =~ /^PBPATCHCMD$/) && ($line =~ /^PBPATCHCMD$/)) {
    180188            pb_log(3,"DEBUG filtering PBPATCHCMD\n");
Note: See TracChangeset for help on using the changeset viewer.