diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-09-08 04:01:16 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-09-08 04:01:16 +0000 |
commit | cc35ad6dae76bf0ab60b311e44860a4b0895e7c6 (patch) | |
tree | 17b7c1ae816e9a6d29e633cf4690660635b10cd6 /contrib | |
parent | Regenerate. (diff) | |
download | rtems-cc35ad6dae76bf0ab60b311e44860a4b0895e7c6.tar.bz2 |
Simplify %if rules.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/crossrpms/specstrip | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/contrib/crossrpms/specstrip b/contrib/crossrpms/specstrip index b61e741610..63ebb66d63 100755 --- a/contrib/crossrpms/specstrip +++ b/contrib/crossrpms/specstrip @@ -201,21 +201,13 @@ foreach my $line ( @buffer3 ) } elsif ( $line =~/^%if\s+(.*)\s*$/ ) { my $exp = $1; - if ( $condstack[$#condstack] =~ m/<FALSE:.*\s*>$/ ) { - push @condstack,"<FALSE:$exp>"; - } else { - push @condstack,"<IFOT:$exp>"; - push @buffer4, "$line\n"; - } + push @condstack,"<IFOT:$exp>"; + push @buffer4, "$line\n"; } elsif ( $line =~/^%if((os|narch)\s+.*)\s*$/ ) { my $exp = $1; - if ( $condstack[$#condstack] =~ m/<FALSE:(.*)\s*>$/ ) { - push @condstack,"<FALSE:$exp>"; - } else { - push @condstack,"<IFOT:$exp>"; - push @buffer4, "$line\n"; - } + push @condstack,"<IFOT:$exp>"; + push @buffer4, "$line\n"; } elsif ( $line =~ /^%else\s*$/ ) { if ( $condstack[$#condstack] =~ m/<TRUE:(.*)\s*>$/ ) { $condstack[$#condstack] = "<FALSE:$1>"; |