]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- take version from Version: line in spec
authormlichvar <mlichvar>
Tue, 30 Jan 2007 09:50:16 +0000 (09:50 +0000)
committermlichvar <mlichvar>
Tue, 30 Jan 2007 09:50:16 +0000 (09:50 +0000)
configure.ac

index 9cbc57950706581a7928085c9990315988e1cf8c..74b525f62e0eac4c31f70307c1b4fad3321fe99c 100644 (file)
@@ -1,7 +1,7 @@
 AC_INIT([newt_pr.h])
 
 PACKAGE=newt
-VERSION=$(awk '/^%define version/ {print $3}' $srcdir/newt.spec)
+VERSION=$(awk '/^Version: / {print $2}' $srcdir/newt.spec)
 SONAME=0.52
 
 AC_CONFIG_HEADER([config.h])