- Timestamp:
- 11/04/05 14:21:55 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r10 r11 339 339 BUILDSCRIPT: while (<SPECFILE>) { 340 340 if (/^\%configure/) { 341 my $tmp = expandmacros($_,'c onfigure');341 my $tmp = expandmacros($_,'cg'); 342 342 $buildscript .= $tmp; 343 343 } else { … … 414 414 415 415 # Expand macros as necessary. 416 $scriptletbase = expandmacros($scriptletbase,'g lobals');416 $scriptletbase = expandmacros($scriptletbase,'g'); 417 417 418 418 $buildroot = $cmdbuildroot if $cmdbuildroot; 419 $buildroot = expandmacros($buildroot,'p kgdata');419 $buildroot = expandmacros($buildroot,'pg'); 420 420 421 421 } # end parse_spec() … … 458 458 print BUILDSCRIPT $scriptletbase; 459 459 460 $buildscript = expandmacros($buildscript,'c onfigure');460 $buildscript = expandmacros($buildscript,'cg'); 461 461 print BUILDSCRIPT $buildscript; 462 462 close BUILDSCRIPT; … … 568 568 my $section = shift; # We'll want to split things up a bit eventually. 569 569 570 if ($section eq 'configure') {570 if ($section =~ /c/) { 571 571 # %configure-ish macros 572 572 # Note that these are processed in reverse order to get the substitution order right … … 613 613 } # done with config section 614 614 615 if ($section eq 'globals') {615 if ($section =~ /g/) { 616 616 $macrostring =~ s/\%\{_topdir\}/$topdir/g; 617 617 … … 625 625 } # done with globals section 626 626 627 if ($section eq 'pkgdata') {627 if ($section =~ /p/) { 628 628 $macrostring =~ s/\%\{name\}/$pkgdata{main}{name}/g; 629 629 $macrostring =~ s/\%\{version\}/$pkgdata{main}{version}/g;
Note:
See TracChangeset
for help on using the changeset viewer.