Generate yaz-version.h from configure.ac (except YAZ_VERSIONL)
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 13 Nov 2008 01:38:19 +0000 (02:38 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 17 Nov 2008 13:08:46 +0000 (14:08 +0100)
configure.ac
include/yaz/.gitignore
include/yaz/Makefile.am
include/yaz/yaz-version.h.in

index fcc9d14..c282836 100644 (file)
@@ -390,6 +390,7 @@ YAZ_BUILD_ROOT=`pwd`
 
 dnl ------ windows version files
 WIN_FILEVERSION=`echo $PACKAGE_VERSION|tr . ,`.1
+AC_SUBST([WIN_FILEVERSION])
 dnl
 dnl ------ Makefiles
 dnl
@@ -412,6 +413,7 @@ etc/Makefile
 yaz-config
 yaz.pc
 Doxyfile
+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
     ]
index e41989a..674b615 100644 (file)
@@ -10,3 +10,4 @@ diagsrw.h
 diagsru_update.h
 oid_std.h
 oclc-ill-req-ext.h
+yaz-version.h
index 4251deb..054ea2f 100644 (file)
@@ -21,3 +21,5 @@ pkginclude_HEADERS= backend.h ccl.h ccl_xml.h cql.h rpn2cql.h comstack.h \
  zes-psched.h zes-admin.h zes-pset.h zes-update.h zes-update0.h \
  zoom.h z-charneg.h charneg.h soap.h srw.h zgdu.h matchstr.h
 
+EXTRA_DIST = yaz-version.h.in
+
index d5ed578..93d495b 100644 (file)
 
 #include <yaz/yconfig.h>
 
-#define YAZ_VERSION "3.0.38"
+#define YAZ_VERSION "@VERSION@"
 #define YAZ_VERSIONL 0x030026
 
-#define YAZ_FILEVERSION 3,0,38,1
+#define YAZ_FILEVERSION @WIN_FILEVERSION@
 
 #define YAZ_DATE 1