diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-03-07 07:08:49 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-03-07 07:08:49 +0000 |
commit | 0039dd40464ea8544022abb32e220224ab71d6e5 (patch) | |
tree | d58e23208cccfbd533be63864442bc86352d34d3 /install-win32/makebin | |
parent | Forgot to svn add buildinstaller before last commit. (diff) | |
download | openvpn-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 'install-win32/makebin')
-rw-r--r-- | install-win32/makebin | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/install-win32/makebin b/install-win32/makebin index 6c8cc31..671fb3b 100644 --- a/install-win32/makebin +++ b/install-win32/makebin @@ -18,16 +18,33 @@ strip bin/openvpnserv.exe # Get OpenSSL binaries for f in libeay32.dll libssl32.dll openssl.exe ; do - cp ../openssl-${OPENSSL_VERSION}/$f bin + cp $OPENSSL_DIR/$f bin strip bin/$f done -# Get TAP drivers -cp -a tap-win32/dist bin/driver - -# Get tapinstall -mkdir bin/tapinstall -mkdir bin/tapinstall/i386 -mkdir bin/tapinstall/amd64 -cp tapinstall/objfre_wnet_x86/i386/tapinstall.exe bin/tapinstall/i386 -cp tapinstall/objfre_wnet_amd64/amd64/tapinstall.exe bin/tapinstall/amd64 +# $DRVBINSRC, if defined, points to prebuilt TAP driver and +# tapinstall.exe. +if [ -z "$DRVBINSRC" ] ; then + # Get TAP drivers + cp -a tap-win32/dist bin/driver + + # Get tapinstall + mkdir bin/tapinstall + mkdir bin/tapinstall/i386 + mkdir bin/tapinstall/amd64 + cp tapinstall/objfre_wnet_x86/i386/tapinstall.exe bin/tapinstall/i386 + cp tapinstall/objfre_wnet_amd64/amd64/tapinstall.exe bin/tapinstall/amd64 +else + cp -a $DRVBINSRC/driver bin/driver + cp -a $DRVBINSRC/tapinstall bin/tapinstall +fi + +# $DRVBINDEST, if defined, points to a destination directory +# where TAP driver and tapinstall.exe will be saved, to be used +# as a $DRVBINSRC in future builds. +if [ -n "$DRVBINDEST" ] ; then + rm -rf $DRVBINDEST + mkdir $DRVBINDEST + cp -a bin/driver $DRVBINDEST + cp -a bin/tapinstall $DRVBINDEST +fi |