From a892c7a027bbb7765fd541c19677def67942cc70 Mon Sep 17 00:00:00 2001 From: Basil Date: Mon, 8 Jul 2013 07:18:29 +0000 Subject: Fix for doubled ";Version" string for some plugins. git-svn-id: http://svn.miranda-ng.org/main/trunk@5265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/lpgen/lpgen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index e52485a49f..8bc89a6509 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -530,8 +530,8 @@ array.push(";============================================================"); //push results of regexp vars into array if (filename) array.push("; File: "+filename[1]); else array.push("; File: "+plugin+".dll"); if (pluginname) array.push("; Plugin: "+pluginname[1]); else array.push("; Plugin: "+plugin); -if (MAJOR_VERSION) array.push("; Version: "+MAJOR_VERSION[1]+"."+MINOR_VERSION[1]+"."+RELEASE_NUM[1]+"."+BUILD_NUM[1]); if (VERSION_STRING) array.push("; Version: "+VERSION_STRING[1]); +if (MAJOR_VERSION && !VERSION_STRING) array.push("; Version: "+MAJOR_VERSION[1]+"."+MINOR_VERSION[1]+"."+RELEASE_NUM[1]+"."+BUILD_NUM[1]); if (!MAJOR_VERSION && !VERSION_STRING) array.push("; Version: x.x.x.x"); if (author) array.push("; Authors: "+fixHexa(author[1])); else array.push("; Authors: "); //add a header end mark -- cgit v1.2.3