]> git.pld-linux.org Git - packages/rpm.git/commitdiff
play with new style of bconds definition
authorArtur Frysiak <artur@frysiak.net>
Fri, 13 Jun 2003 12:40:35 +0000 (12:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-spec-bcond -> 1.4

rpm-find-spec-bcond

index 82343531a0e501dde88922ad9880ece3e9c3277c..b6490753928065730f583ff62cb9589519b876ea 100644 (file)
@@ -26,7 +26,13 @@ bconds=`awk -F"\n" 'BEGIN { chlog=0 }
                /_with(out)?_[_a-z0-9]+/ && chlog == 0 {
                        match($0, /_with(out)?_[_a-z0-9]+/);
                        print substr($0, RSTART, RLENGTH)                       
-               }' $SPEC | sort -u`
+               }
+               /^%bcond_with/ && chlog == 0 {
+                       match($0, /bcond_with(out)?[    ]+[_a-z0-9]+/);
+                                bcond = substr($0, RSTART +5 , RLENGTH -5);
+                                gsub(/ /,"_",bcond);
+                                print bcond
+                       }' $SPEC | sort -u`
 
 for c in $bconds; do
     echo -n "$c"
This page took 0.078917 seconds and 4 git commands to generate.