From 4ff0c3550767a9ed3c91bbc042d135e95c2af1c1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 31 Aug 2011 20:24:10 +0200 Subject: [PATCH] awk --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 8c2eddf..dca3159 100755 --- 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, -- 2.39.5