aboutsummaryrefslogtreecommitdiff
path: root/install-win32/copyinstaller
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-04-22 08:21:16 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-04-22 08:21:16 +0000
commit1568d7f42886fe3f5f8ea79110791cdd8e0786df (patch)
treefd76610f02817c91b3f92774e7fa08480b846168 /install-win32/copyinstaller
parentMoved OpenVPN version number from configure.ac (diff)
downloadopenvpn-1568d7f42886fe3f5f8ea79110791cdd8e0786df.tar.xz
Version is now specified in version.m4 for both
unix and windows versions. Reworked the Windows build scripting system, with settings (other than version #) specified in settings.in. Moved the native scripting grammar as defined by trans.pl away from NSIS and to something more generic. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1867 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'install-win32/copyinstaller')
-rw-r--r--install-win32/copyinstaller16
1 files changed, 10 insertions, 6 deletions
diff --git a/install-win32/copyinstaller b/install-win32/copyinstaller
index 96c213d..feecd13 100644
--- a/install-win32/copyinstaller
+++ b/install-win32/copyinstaller
@@ -1,11 +1,15 @@
#!/bin/sh
-# copy the installer
+# copy the installer to the $INSTALLER_DEST directory.
# load version.nsi definitions
-. autodefs/nsidefs.sh
+. autodefs/defs.sh
-cd install-win32
-ls openvpn*.exe 2>/dev/null || exit 1
-exe=`ls -t openvpn*.exe | head -n 1`
-cp $exe ..
+if [ -n "$INSTALLER_DEST" ] ; then
+ cd install-win32
+ ls openvpn*.exe 2>/dev/null || exit 1
+ exe=install-win32/`ls -t openvpn*.exe | head -n 1`
+ cd ..
+ echo cp $exe "$INSTALLER_DEST"
+ cp $exe "$INSTALLER_DEST"
+fi