]> err.no Git - yubikey-personalization/commitdiff
Avoid hard coding VERSION in ykpers4win.
authorSimon Josefsson <simon@josefsson.org>
Wed, 12 Dec 2012 12:27:03 +0000 (13:27 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 12 Dec 2012 12:27:03 +0000 (13:27 +0100)
build-and-test.sh
ykpers4win.mk

index c54dbacd3be8c30734c16b3610410c89c65ddf4c..7d3b1b66b14c1eba699e31dd94800810eb8a2d73 100755 (executable)
@@ -5,11 +5,11 @@ set -e
 autoreconf -i
 
 if [ "x$LIBUSB" = "xwindows" ]; then
-  ./configure --with-backend=stub
-  touch ChangeLog
-  make dist
-  make -f ykpers4win.mk ykpers4win32mingw32
+    ./configure --with-backend=stub
+    touch ChangeLog
+    make dist
+    make -f ykpers4win.mk ykpers4win32mingw32 `grep ^VERSION Makefile|sed 's/ = /=/'`
 else
-  ./configure --with-backend=$LIBUSB
-  make check
+    ./configure --with-backend=$LIBUSB
+    make check
 fi
index a8e46afd9ecea45d5c0a6be083a1eb7fcc115683..0f958195badea62c059d26d3d2fe12dccb2bbee0 100644 (file)
@@ -29,7 +29,6 @@
 LIBYUBIKEYVERSION=1.9
 PROJECT=yubikey-personalization
 PACKAGE=ykpers
-VERSION=1.10.1
 
 all: usage ykpers4win32 ykpers4win64