aboutsummaryrefslogtreecommitdiff
path: root/install-win32/copyinstaller
diff options
context:
space:
mode:
Diffstat (limited to '')
-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