diff options
author | Basil <basil@miranda-ng.org> | 2013-02-01 06:36:47 +0000 |
---|---|---|
committer | Basil <basil@miranda-ng.org> | 2013-02-01 06:36:47 +0000 |
commit | f2d9c8362ea41af98e6b6176895c287f829fc737 (patch) | |
tree | 365773d6edbef0be270e857cfb2d1f1dc017a885 /tools | |
parent | 627f73ec509c8bdb18b36f4ff32d16be48f12216 (diff) |
Again version.h parsing boosted, now ZeroNotify version and description parsed, as well ass MirOTR version.
git-svn-id: http://svn.miranda-ng.org/main/trunk@3385 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lpgen/lpgen.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 689b4126dc..4ff40f445a 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -515,12 +515,12 @@ allstrings=versionfile_stream.ReadAll(); var filename=/(?:#define\s+__FILENAME\s+")(.+)(?=")/m;
var pluginname=/(?:#define\s+__PLUGIN_NAME\s+")(.+)(?=")/i;
var author=/(?:#define\s+__AUTHORS?\s+")(.+)(?=")/i;
-var MAJOR_VERSION=/(?:#define\s+_+(?:MAJOR_VERSION|VER_MAJOR)\s+)(\d+)/i;
-var MINOR_VERSION=/(?:#define\s+_+(?:MINOR_VERSION|VER_MINOR)\s+)(\d+)/i;
-var RELEASE_NUM=/(?:#define\s+_+(?:RELEASE_NUM|VER_REVISION)\s+)(\d+)/i;
-var BUILD_NUM=/(?:#define\s+_+(?:BUILD_NUM|VER_BUILD)\s+)(\d+)/i;
-var VERSION_STRING=/(?:#define\s+_+VERSION_STRING\s+")([\d\.]+)\"/i;
-var description=/(?:#define\s+__(?:PLUGIN_)?DESC(?:RIPTION)?\s+")(.+)(?=")/i;
+var MAJOR_VERSION=/(?:#define\s+_*?(?:MAJOR_VERSION|VER_MAJOR)\s+)(\d+)/i;
+var MINOR_VERSION=/(?:#define\s+_*?(?:MINOR_VERSION|VER_MINOR)\s+)(\d+)/i;
+var RELEASE_NUM=/(?:#define\s+_*?(?:RELEASE_NUM|VER_REVISION|VER_RELEASE)\s+)(\d+)/i;
+var BUILD_NUM=/(?:#define\s+_*?(?:BUILD_NUM|VER_BUILD)\s+)(\d+)/i;
+var VERSION_STRING=/(?:#define\s+_*?VERSION_STRING\s+")([\d\.]+)\"/i;
+var description=/(?:#define\s+_*?(?:PLUGIN_)?DESC(?:RIPTION)?\s+")(.+)(?=")/i;
//exec RegExps
filename=filename.exec(allstrings);
pluginname=pluginname.exec(allstrings);
|