Skip to content

Commit

Permalink
build: windows: install version.sh to allow installer read version
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alonbl authored and David Sommerseth committed Mar 23, 2012
1 parent 14a131a commit 6187644
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions version.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@"
OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@"
OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@"
OPENVPN_PACKAGE_HOST="@host@"

0 comments on commit 6187644

Please sign in to comment.