aboutsummaryrefslogtreecommitdiff
path: root/install-win32/macro.pl
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-03-06 06:48:09 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-03-06 06:48:09 +0000
commitf9ad66c789308d99576ca5d28b1bedf973957ab2 (patch)
tree2bd88a8bf758ac32c8e8e85bfdeb2cd068626536 /install-win32/macro.pl
parentAllow installation of TAP-Win64 (diff)
downloadopenvpn-f9ad66c789308d99576ca5d28b1bedf973957ab2.tar.xz
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
Diffstat (limited to 'install-win32/macro.pl')
-rw-r--r--install-win32/macro.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/install-win32/macro.pl b/install-win32/macro.pl
new file mode 100644
index 0000000..e3a7f30
--- /dev/null
+++ b/install-win32/macro.pl
@@ -0,0 +1,28 @@
+die "usage: macro.pl <control-file>" if (@ARGV < 1);
+($control_file) = @ARGV;
+
+open(CONTROL, "< $control_file") or die "cannot open $control_file";
+
+%Parms = ();
+
+while (<CONTROL>) {
+ chomp;
+ if (/^!define\s+(\w+)\s+['"]?(.+?)['"]?\s*$/) {
+ $Parms{$1} = $2
+ }
+}
+
+while (<STDIN>) {
+ s{
+ @@
+ \s*
+ (
+ \w+
+ )
+ \s*
+ @@
+ }{
+ $Parms{$1}
+ }xge;
+ print;
+}