From f9ad66c789308d99576ca5d28b1bedf973957ab2 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 6 Mar 2007 06:48:09 +0000 Subject: Changes to Windows build environment, to allow straightforward building directly from an svn checkout or export. install-win32/version.nsi contains high-level version info. The script install-win32/winconfig should be run initially to set up build configuration files. Then make can be executed as such: . autodefs/nsidefs.sh make -f makefile.w32 -j 2 git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1757 e7ae566f-a301-0410-adde-c780ea21d3b5 --- install-win32/nsitran.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 install-win32/nsitran.pl (limited to 'install-win32/nsitran.pl') diff --git a/install-win32/nsitran.pl b/install-win32/nsitran.pl new file mode 100644 index 0000000..7c04e40 --- /dev/null +++ b/install-win32/nsitran.pl @@ -0,0 +1,16 @@ +($mode) = @ARGV; + +while () { + chomp; + if (/^\s*$/) { + print "\n"; + } elsif (/^[#;](.*)$/) { + print "//$1\n" if ($mode eq "c"); + print "#$1\n" if ($mode eq "sh"); + print "//$1\n" if ($mode eq "js"); + } elsif (/^!define\s+(\w+)\s+(.+)$/) { + print "#define $1 $2\n" if ($mode eq "c"); + print "export $1=$2\n" if ($mode eq "sh"); + print "var $1=$2;\n" if ($mode eq "js"); + } +} -- cgit v1.2.3