summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-09-08 04:11:06 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-09-08 04:11:06 +0000
commit4539347502ae8892f662b3295079e33f66c76ba3 (patch)
tree8da84f5ab4cbae8d904ba12ca1407c031a9f1c56 /contrib
parentPrepend @condstack to @buffer4 lines. (diff)
downloadrtems-4539347502ae8892f662b3295079e33f66c76ba3.tar.bz2
Parse condstack in final printing.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/crossrpms/specstrip14
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/crossrpms/specstrip b/contrib/crossrpms/specstrip
index feda29636c..f7fbb9cbf5 100755
--- a/contrib/crossrpms/specstrip
+++ b/contrib/crossrpms/specstrip
@@ -240,4 +240,16 @@ foreach my $line ( @buffer3 )
# print STDERR @condstack, "LINE: $line\n";
}
-print STDOUT @buffer4;
+print STDERR @buffer4 if $verbose > 2;
+
+foreach my $line (@buffer4) {
+ if ( $line =~ /^(<.*>):(.*)$/ ) {
+ if ( $1 =~ m/.*<FALSE:.*$/ ) {
+ } else {
+ print STDOUT "$2\n";
+ }
+ } else {
+ die "Unexpected value: $line\n";
+ }
+}
+