summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-09-08 04:04:10 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-09-08 04:04:10 +0000
commitcf1c37c6b1cd048d0947a0e8e8b7da47b0b3bc35 (patch)
tree053969d5406588bb561fbba79333cb386a764d6a /contrib
parentSimplify %if rules. (diff)
downloadrtems-cf1c37c6b1cd048d0947a0e8e8b7da47b0b3bc35.tar.bz2
Prepend @condstack to @buffer4 lines.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/crossrpms/specstrip10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/crossrpms/specstrip b/contrib/crossrpms/specstrip
index 63ebb66d63..19d2158f21 100755
--- a/contrib/crossrpms/specstrip
+++ b/contrib/crossrpms/specstrip
@@ -202,19 +202,19 @@ foreach my $line ( @buffer3 )
{
my $exp = $1;
push @condstack,"<IFOT:$exp>";
- push @buffer4, "$line\n";
+ push @buffer4, "@condstack:$line\n";
} elsif ( $line =~/^%if((os|narch)\s+.*)\s*$/ )
{
my $exp = $1;
push @condstack,"<IFOT:$exp>";
- push @buffer4, "$line\n";
+ push @buffer4, "@condstack:$line\n";
} elsif ( $line =~ /^%else\s*$/ ) {
if ( $condstack[$#condstack] =~ m/<TRUE:(.*)\s*>$/ ) {
$condstack[$#condstack] = "<FALSE:$1>";
} elsif ( $condstack[$#condstack] =~ m/<FALSE:(.*)\s*>$/ ) {
$condstack[$#condstack] = "<TRUE:$1>";
} else {
- push @buffer4, "$line\n";
+ push @buffer4, "@condstack:$line\n";
}
} elsif ( $line =~ /^%endif\s*$/ ) {
@@ -230,10 +230,10 @@ foreach my $line ( @buffer3 )
} else {
# print STDERR "CATCH $condstack[$#condstack]:$line\n";
if ( $condstack[$#condstack] =~ m/<TRUE:.*>$/ ) {
- push @buffer4, "$line\n";
+ push @buffer4, "@condstack:$line\n";
} elsif ( $condstack[$#condstack] =~ m/<FALSE:.*>$/ ) {
} else {
- push @buffer4, "$line\n";
+ push @buffer4, "@condstack:$line\n";
}
}