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>
This commit is contained in:
Alon Bar-Lev 2012-02-29 22:12:20 +02:00 committed by David Sommerseth
parent 14a131ac1c
commit 6187644b66
4 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View file

@ -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

View file

@ -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

View file

@ -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

4
version.sh.in Normal file
View file

@ -0,0 +1,4 @@
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@"
OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@"
OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@"
OPENVPN_PACKAGE_HOST="@host@"