]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- optionally die if there were errors
authorsparky <sparky@pld-linux.org>
Sun, 28 Sep 2008 14:39:09 +0000 (14:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-track-config-change.awk -> 1.2

kernel-track-config-change.awk

index 50cde5c3ba56e42744b28fc4a585f97f92d689b5..b7ee300fecb325591b0f45a654b55a4077ed79e2 100644 (file)
@@ -19,6 +19,8 @@ BEGIN {
                        continue
                }
        }
+
+       foundErrors = 0
 }
 
 
@@ -48,10 +50,15 @@ BEGIN {
        } else {
                if ( value != orig ) {
                        print "ERROR: option " name " redefined from " orig " to " value
+                       foundErrors++
                }
        }
 }
 
 END {
-       exit 0
+       if ( foundErrors ) {
+               print "There were " foundErrors " errors"
+               if ( dieOnError )
+                       exit 1
+       }
 }
This page took 0.387237 seconds and 4 git commands to generate.