aboutsummaryrefslogtreecommitdiff
path: root/install-win32/m4todef.pl
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-04-22 08:21:16 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-04-22 08:21:16 +0000
commit1568d7f42886fe3f5f8ea79110791cdd8e0786df (patch)
treefd76610f02817c91b3f92774e7fa08480b846168 /install-win32/m4todef.pl
parentMoved OpenVPN version number from configure.ac (diff)
downloadopenvpn-1568d7f42886fe3f5f8ea79110791cdd8e0786df.tar.xz
Version is now specified in version.m4 for both
unix and windows versions. Reworked the Windows build scripting system, with settings (other than version #) specified in settings.in. Moved the native scripting grammar as defined by trans.pl away from NSIS and to something more generic. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1867 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'install-win32/m4todef.pl')
-rw-r--r--install-win32/m4todef.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/install-win32/m4todef.pl b/install-win32/m4todef.pl
new file mode 100644
index 0000000..c4f0409
--- /dev/null
+++ b/install-win32/m4todef.pl
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+
+# used to convert version.m4 to simple
+# definition format
+
+while (<STDIN>) {
+ chomp;
+ if (/^\s*$/) {
+ print "\n";
+ } elsif (/^define\((\w+),\[(.*?)\]\)/) {
+ print "define $1 \"$2\"\n";
+ } elsif (/^dnl(.*)$/) {
+ print "#$1\n";
+ }
+}