Changeset 24


Ignore:
Timestamp:
12/05/05 18:21:29 (18 years ago)
Author:
kdeugau
Message:

/trunk

Checkpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r23 r24  
    370370            $buildscript .= expandmacros($_,'mgbp');
    371371          } else {
    372             last BUILDSCRIPT if /^\%/;
     372            last BUILDSCRIPT if /^\%[^{]/;
    373373            $buildscript .= $_;
    374374          }
     
    426426        my $pkgname = 'main';
    427427        if ($1) {
    428           if (/-n/) { $pkgname = $1; } else { $pkgname = "$name-$1"; }
     428          if (/-n/) { $pkgname = $1; } else { $pkgname = "$pkgdata{main}{name}-$1"; }
    429429          # subpackage not based on "main" package
    430430          while (<SPECFILE>) {
     
    450450        $pkgdata{main}{summary} = $1;
    451451      } elsif (/^name:\s+(.+)/i) {
    452         $pkgdata{main}{name} = $1;
     452        $pkgdata{main}{name} = expandmacros($1,'g');
    453453      } elsif (/^version:\s+(.+)/i) {
    454         $pkgdata{main}{version} = $1;
     454        $pkgdata{main}{version} = expandmacros($1,'g');
    455455      } elsif (/^release:\s+(.+)/i) {
    456         $pkgdata{main}{release} = $1;
     456        $pkgdata{main}{release} = expandmacros($1,'g');
    457457      } elsif (/^group:\s+(.+)/i) {
    458458        $pkgdata{main}{group} = $1;
     
    505505  $prepscript = expandmacros($prepscript,'gp');
    506506
    507 print $prepscript; exit 0;
     507#print $prepscript; exit 0;
    508508
    509509  # create script filename
     
    710710  if ($section =~ /i/) {
    711711    # This is where we need to mangle $prefix.
    712     $macrostring =~ s'%makeinstall'make %{fhs}
    713         install';
     712    $macrostring =~ s'%makeinstall'make %{fhs} install';
    714713    $prefix = $buildroot;
    715714  } # done %install and/or %makeinstall
     
    718717  # Note that these are processed in reverse order to get the substitution order right
    719718  if ($section =~ /b/) {
    720     $macrostring =~ s'%{fhs}'host=$DEB_HOST_GNU_TYPE \
    721         build=$DEB_BUILD_GNU_TYPE \
    722         prefix=%{_prefix} \
     719#    $macrostring =~ s'%{fhs}'host=$DEB_HOST_GNU_TYPE \
     720#       build=$DEB_BUILD_GNU_TYPE \
     721    $macrostring =~ s'%{fhs}'prefix=%{_prefix} \
    723722        exec-prefix=%{_exec_prefix} \
    724723        bindir=%{_bindir} \
Note: See TracChangeset for help on using the changeset viewer.