From: Adam Dickmeiss Date: Mon, 17 Nov 2008 13:43:38 +0000 (+0100) Subject: Version now propagated to yaz-version.h + NSI installer. X-Git-Tag: v3.0.40~62^2~2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6c24a7636cfb5c6609061e8f4bb696ad8f1607d1;p=yaz-moved-to-github.git Version now propagated to yaz-version.h + NSI installer. --- diff --git a/configure.ac b/configure.ac index c282836..b8b1e37 100644 --- a/configure.ac +++ b/configure.ac @@ -387,10 +387,13 @@ AC_SUBST([YAZ_SRC_ROOT]) AC_SUBST([YAZ_BUILD_ROOT]) YAZ_SRC_ROOT=`cd ${srcdir}; pwd` YAZ_BUILD_ROOT=`pwd` - -dnl ------ windows version files -WIN_FILEVERSION=`echo $PACKAGE_VERSION|tr . ,`.1 +dnl +dnl ------ versioning +dnl +WIN_FILEVERSION=`echo $PACKAGE_VERSION | awk 'BEGIN { FS = "."; } { m = $4; printf "%d,%d,%d,%d", $1, $2, $3 == "" ? "0" : $3, $4 == "" ? "1" : $4;}'` AC_SUBST([WIN_FILEVERSION]) +YAZ_VERSION_HEX=`echo $PACKAGE_VERSION | awk 'BEGIN { FS = "."; } { printf "%x", ($1 * 256 + $2) * 256 + $3;}'` +AC_SUBST([YAZ_VERSION_HEX]) dnl dnl ------ Makefiles dnl @@ -413,6 +416,7 @@ etc/Makefile yaz-config yaz.pc Doxyfile +win/version.nsi include/yaz/yaz-version.h ],[ sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz-config > util/yaz-config && chmod +x yaz-config util/yaz-config diff --git a/include/yaz/yaz-version.h.in b/include/yaz/yaz-version.h.in index 93d495b..a56cc0a 100644 --- a/include/yaz/yaz-version.h.in +++ b/include/yaz/yaz-version.h.in @@ -33,7 +33,7 @@ #include #define YAZ_VERSION "@VERSION@" -#define YAZ_VERSIONL 0x030026 +#define YAZ_VERSIONL 0x@YAZ_VERSION_HEX@ #define YAZ_FILEVERSION @WIN_FILEVERSION@ diff --git a/win/version.nsi.in b/win/version.nsi.in new file mode 100644 index 0000000..5fa481b --- /dev/null +++ b/win/version.nsi.in @@ -0,0 +1,2 @@ +!define VERSION "@PACKAGE_VERSION@" + diff --git a/win/yaz.nsi b/win/yaz.nsi index 25b41f6..e67b81a 100644 --- a/win/yaz.nsi +++ b/win/yaz.nsi @@ -1,7 +1,7 @@ ; This file is part of the YAZ toolkit. ; Copyright (C) 1995-2008 Index Data -!define VERSION "3.0.38" +!include version.nsi ; Microsoft runtime CRT ; Uncomment exactly ONE section of the three below