mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +03:00
Fix win32/configure.js
Adjust for recent config changes.
This commit is contained in:
@ -19,7 +19,7 @@ var baseNameXslt = "libxslt";
|
|||||||
var baseNameExslt = "libexslt";
|
var baseNameExslt = "libexslt";
|
||||||
/* Configure file which contains the version and the output file where
|
/* Configure file which contains the version and the output file where
|
||||||
we can store our build configuration. */
|
we can store our build configuration. */
|
||||||
var configFile = baseDir + "\\configure.in";
|
var configFile = baseDir + "\\configure.ac";
|
||||||
var versionFile = ".\\config.msvc";
|
var versionFile = ".\\config.msvc";
|
||||||
/* Input and output files regarding the lib(e)xml features. The second
|
/* Input and output files regarding the lib(e)xml features. The second
|
||||||
output file is there for the compatibility reasons, otherwise it
|
output file is there for the compatibility reasons, otherwise it
|
||||||
@ -165,15 +165,15 @@ function discoverVersion()
|
|||||||
while (cf.AtEndOfStream != true) {
|
while (cf.AtEndOfStream != true) {
|
||||||
ln = cf.ReadLine();
|
ln = cf.ReadLine();
|
||||||
s = new String(ln);
|
s = new String(ln);
|
||||||
if (s.search(/^LIBXSLT_MAJOR_VERSION=/) != -1) {
|
if (m = s.match(/^m4_define\(\[MAJOR_VERSION\], \[(.*)\]\)/)) {
|
||||||
vf.WriteLine(s);
|
vf.WriteLine("LIBXSLT_MAJOR_VERSION=" + m[1]);
|
||||||
verMajorXslt = s.substring(s.indexOf("=") + 1, s.length)
|
verMajorXslt = m[1];
|
||||||
} else if(s.search(/^LIBXSLT_MINOR_VERSION=/) != -1) {
|
} else if(m = s.match(/^m4_define\(\[MINOR_VERSION\], \[(.*)\]\)/)) {
|
||||||
vf.WriteLine(s);
|
vf.WriteLine("LIBXSLT_MINOR_VERSION=" + m[1]);
|
||||||
verMinorXslt = s.substring(s.indexOf("=") + 1, s.length)
|
verMinorXslt = m[1];
|
||||||
} else if(s.search(/^LIBXSLT_MICRO_VERSION=/) != -1) {
|
} else if(m = s.match(/^m4_define\(\[MICRO_VERSION\], \[(.*)\]\)/)) {
|
||||||
vf.WriteLine(s);
|
vf.WriteLine("LIBXSLT_MICRO_VERSION=" + m[1]);
|
||||||
verMicroXslt = s.substring(s.indexOf("=") + 1, s.length)
|
verMicroXslt = m[1];
|
||||||
} else if (s.search(/^LIBEXSLT_MAJOR_VERSION=/) != -1) {
|
} else if (s.search(/^LIBEXSLT_MAJOR_VERSION=/) != -1) {
|
||||||
vf.WriteLine(s);
|
vf.WriteLine(s);
|
||||||
verMajorExslt = s.substring(s.indexOf("=") + 1, s.length)
|
verMajorExslt = s.substring(s.indexOf("=") + 1, s.length)
|
||||||
|
Reference in New Issue
Block a user