From f2d9c8362ea41af98e6b6176895c287f829fc737 Mon Sep 17 00:00:00 2001 From: Basil Date: Fri, 1 Feb 2013 06:36:47 +0000 Subject: 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 --- tools/lpgen/lpgen.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/lpgen/lpgen.js') 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); -- cgit v1.2.3