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/winconfig | |
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/winconfig')
-rw-r--r-- | install-win32/winconfig | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/install-win32/winconfig b/install-win32/winconfig index 583bd89..bca1bb6 100644 --- a/install-win32/winconfig +++ b/install-win32/winconfig @@ -10,22 +10,22 @@ mkdir autodefs TRAN="perl install-win32/nsitran.pl" VER=install-win32/version.nsi -MACRO="perl install-win32/macro.pl $HSV" -PATCH="/tmp/p.exe" +MACRO="perl install-win32/macro.pl $VER" # silly vista security theatre +PATCH="/tmp/p.exe" cp `which patch` $PATCH # translate version.nsi to C and sh $TRAN c <$VER >autodefs/nsidefs.h $TRAN sh <$VER >autodefs/nsidefs.sh -# get version.nsi definitions +# load version.nsi definitions . autodefs/nsidefs.sh # configure tap driver sources -$MACRO $VER <tap-win32/SOURCES.in >tap-win32/SOURCES -$MACRO $VER <tap-win32/i386/OemWin2k.inf.in >tap-win32/i386/OemWin2k.inf +$MACRO <tap-win32/SOURCES.in >tap-win32/SOURCES +$MACRO <tap-win32/i386/OemWin2k.inf.in >tap-win32/i386/OemWin2k.inf rm -rf tap-win32/amd64 mkdir tap-win32/amd64 cp tap-win32/i386/OemWin2k.inf tap-win32/amd64 @@ -33,12 +33,14 @@ cd tap-win32/amd64 $PATCH <../inf64.patch # configure service -cd $c -cp $SVC_TEMPLATE/service.[ch] service-win32 -cd service-win32 -cp service.c service.c.orig -cp service.h service.h.orig -$PATCH <service.patch +if [ -n "$SVC_TEMPLATE" ] ; then + cd $c + cp $SVC_TEMPLATE/service.[ch] service-win32 + cd service-win32 + cp service.c service.c.orig + cp service.h service.h.orig + $PATCH <service.patch +fi # build license file cd $c |