aboutsummaryrefslogtreecommitdiff
path: root/install-win32/maketap
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-03-07 07:08:49 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-03-07 07:08:49 +0000
commit0039dd40464ea8544022abb32e220224ab71d6e5 (patch)
treed58e23208cccfbd533be63864442bc86352d34d3 /install-win32/maketap
parentForgot to svn add buildinstaller before last commit. (diff)
downloadopenvpn-0039dd40464ea8544022abb32e220224ab71d6e5.tar.xz
Cleaned up Windows build scripts.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1763 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--install-win32/maketap16
-rw-r--r--install-win32/maketapinstall26
2 files changed, 23 insertions, 19 deletions
diff --git a/install-win32/maketap b/install-win32/maketap
index 0d72fff..7d811f9 100644
--- a/install-win32/maketap
+++ b/install-win32/maketap
@@ -6,11 +6,13 @@
# get version.nsi definitions
. autodefs/nsidefs.sh
-cd tap-win32
-t=`pwd`
-cd ..
+if [ -z "$DRVBINSRC" ] ; then
+ cd tap-win32
+ t=`pwd`
+ cd ..
-for mode in "fre WNET" "fre AMD64 WNET"; do
- echo '**********' build TAP $mode
- cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
-done
+ for mode in "fre WNET" "fre AMD64 WNET"; do
+ echo '**********' build TAP $mode
+ cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
+ done
+fi
diff --git a/install-win32/maketapinstall b/install-win32/maketapinstall
index dff2f21..e10f25c 100644
--- a/install-win32/maketapinstall
+++ b/install-win32/maketapinstall
@@ -1,21 +1,23 @@
#!/bin/sh
# Build the x86 and x64 versions of the tapinstall tool
-# Requires the Windows DDK
-
-TISRC=../tapinstall
+# Requires the Windows DDK.
+# TISRC should be set to directory containing
+# tapinstall source code.
# get version.nsi definitions
. autodefs/nsidefs.sh
-rm -rf tapinstall
-cp -a $TISRC tapinstall
+if [ -z "$DRVBINSRC" ] ; then
+ rm -rf tapinstall
+ cp -a "$TISRC" tapinstall
-cd tapinstall
-t=`pwd`
-cd ..
+ cd tapinstall
+ t=`pwd`
+ cd ..
-for mode in "fre WNET" "fre AMD64 WNET"; do
- echo '**********' build TAPINSTALL $mode
- cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
-done
+ for mode in "fre WNET" "fre AMD64 WNET"; do
+ echo '**********' build TAPINSTALL $mode
+ cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
+ done
+fi