diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2012-02-29 22:12:20 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-03-24 00:14:23 +0100 |
commit | 6187644b660ce284d0a706811eae2dce7cb411b2 (patch) | |
tree | fc0446a18154df46c7a2733bc5dbb6c0eb526ec4 | |
parent | 14a131ac1cfc95e5ba2518ff887d04c034aecc53 (diff) | |
download | openvpn-6187644b660ce284d0a706811eae2dce7cb411b2.tar.gz openvpn-6187644b660ce284d0a706811eae2dce7cb411b2.tar.xz openvpn-6187644b660ce284d0a706811eae2dce7cb411b2.zip |
build: windows: install version.sh to allow installer read version
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | version.sh.in | 4 |
4 files changed, 11 insertions, 0 deletions
@@ -39,6 +39,7 @@ m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 +version.sh msvc-env-local.bat config-msvc-local.h config-msvc-version.h diff --git a/Makefile.am b/Makefile.am index 5293518..68aa0a8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -69,3 +69,8 @@ endif dist_noinst_HEADERS = \ config-msvc.h \ config-msvc-version.h.in + +if WIN32 +rootdir=$(prefix) +root_DATA = version.sh +endif diff --git a/configure.ac b/configure.ac index d53a74a..0f2a62e 100644 --- a/configure.ac +++ b/configure.ac @@ -904,6 +904,7 @@ AC_SUBST([OPTIONAL_PKCS11_HELPER_LIBS]) AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) AC_CONFIG_FILES([ + version.sh Makefile build/Makefile build/msvc/Makefile diff --git a/version.sh.in b/version.sh.in new file mode 100644 index 0000000..2af5a36 --- /dev/null +++ b/version.sh.in @@ -0,0 +1,4 @@ +OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@" +OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@" +OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@" +OPENVPN_PACKAGE_HOST="@host@" |