vcpkg/ports/libxslt/0003-Fix-configure.patch

51 lines
1.9 KiB
Diff
Raw Normal View History

diff --git a/win32/configure.js b/win32/configure.js
index 0737b06..11815e4 100644
--- a/win32/configure.js
+++ b/win32/configure.js
@@ -138,7 +138,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")) {
@@ -147,8 +147,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;
}
@@ -178,13 +178,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();
@@ -365,8 +365,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")