]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
awk
authorHolger Levsen <holger@layer-acht.org>
Wed, 31 Aug 2011 18:24:10 +0000 (20:24 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 31 Aug 2011 18:24:10 +0000 (20:24 +0200)
build.py

index 8c2eddf67cd59350ad64db96ad4d535e13254f37..dca31598b33f8dee8b0f7e394e42f8c693b3f0bf 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -363,7 +363,8 @@ if __name__ == '__main__':
         logger.info(stdout_msg)
 
        # i hate this: a version needs to include a . now...
-       cmd = ['grep-dctrl', '-n', '-s', "Version '.'"]
+       #cmd = ['grep-dctrl', '-n', '-s', 'Version', '.']
+       cmd = [ 'awk', "'/^Version: / {print $2}'"]
        grep_dctrl =  subprocess.Popen(
                 cmd,
                 shell=False,