[libxslt] Minor fixes to configure.js
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Minor fixes to configure.js
- Date: Fri, 10 Jan 2020 17:38:31 +0000 (UTC)
commit 7357f29c3a83aaa4b06bc86a2be36d5eea11201e
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Fri Jan 10 18:36:23 2020 +0100
Minor fixes to configure.js
- Declare local variables
- Semicolon coding style
- Remove duplicated option check
Found by lgtm.com
win32/configure.js | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/win32/configure.js b/win32/configure.js
index 12c99f30..549b942e 100644
--- a/win32/configure.js
+++ b/win32/configure.js
@@ -136,7 +136,7 @@ function usage()
file included by our makefile. */
function discoverVersion()
{
- var fso, cf, vf, ln, s;
+ var fso, cf, vf, ln, s, m;
fso = new ActiveXObject("Scripting.FileSystemObject");
verCvs = "";
if (useCvsVer && fso.FileExists("..\\CVS\\Entries")) {
@@ -145,8 +145,8 @@ function discoverVersion()
ln = cf.ReadLine();
s = new String(ln);
if (s.search(/^\/ChangeLog\//) != -1) {
- iDot = s.indexOf(".");
- iSlash = s.indexOf("/", iDot);
+ var iDot = s.indexOf(".");
+ var iSlash = s.indexOf("/", iDot);
verCvs = "CVS" + s.substring(iDot + 1, iSlash);
break;
}
@@ -176,13 +176,13 @@ function discoverVersion()
verMicroXslt = m[1];
} else if (s.search(/^LIBEXSLT_MAJOR_VERSION=/) != -1) {
vf.WriteLine(s);
- verMajorExslt = s.substring(s.indexOf("=") + 1, s.length)
+ verMajorExslt = s.substring(s.indexOf("=") + 1, s.length);
} else if(s.search(/^LIBEXSLT_MINOR_VERSION=/) != -1) {
vf.WriteLine(s);
- verMinorExslt = s.substring(s.indexOf("=") + 1, s.length)
+ verMinorExslt = s.substring(s.indexOf("=") + 1, s.length);
} else if(s.search(/^LIBEXSLT_MICRO_VERSION=/) != -1) {
vf.WriteLine(s);
- verMicroExslt = s.substring(s.indexOf("=") + 1, s.length)
+ verMicroExslt = s.substring(s.indexOf("=") + 1, s.length);
}
}
cf.Close();
@@ -360,8 +360,6 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
buildStatic = strToBool(arg.substring(opt.length + 1, arg.length));
else if (opt == "prefix")
buildPrefix = arg.substring(opt.length + 1, arg.length);
- else if (opt == "incdir")
- buildIncPrefix = arg.substring(opt.length + 1, arg.length);
else if (opt == "bindir")
buildBinPrefix = arg.substring(opt.length + 1, arg.length);
else if (opt == "libdir")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]