1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

patch from Stephane Bidoul for configuring the beta2 version #123104

* win32/configure.js: patch from Stephane Bidoul for configuring
  the beta2 version #123104
Daniel
This commit is contained in:
Daniel Veillard
2003-09-24 21:45:21 +00:00
parent e96a2a4bf0
commit 70b185648c
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
Wed Sep 24 23:42:08 CEST 2003 Daniel Veillard <daniel@veillard.com>
* win32/configure.js: patch from Stephane Bidoul for configuring
the beta2 version #123104
Wed Sep 24 23:17:59 CEST 2003 Daniel Veillard <daniel@veillard.com> Wed Sep 24 23:17:59 CEST 2003 Daniel Veillard <daniel@veillard.com>
* Makefile.am: adding repeated parsing and validating tests * Makefile.am: adding repeated parsing and validating tests

View File

@@ -155,15 +155,18 @@ 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(/^LIBXML_MAJOR_VERSION/) != -1) { if (s.search(/^LIBXML_MAJOR_VERSION=/) != -1) {
vf.WriteLine(s); vf.WriteLine(s);
verMajor = s.substring(s.indexOf("=") + 1, s.length) verMajor = s.substring(s.indexOf("=") + 1, s.length)
} else if(s.search(/^LIBXML_MINOR_VERSION/) != -1) { } else if(s.search(/^LIBXML_MINOR_VERSION=/) != -1) {
vf.WriteLine(s); vf.WriteLine(s);
verMinor = s.substring(s.indexOf("=") + 1, s.length) verMinor = s.substring(s.indexOf("=") + 1, s.length)
} else if(s.search(/^LIBXML_MICRO_VERSION/) != -1) { } else if(s.search(/^LIBXML_MICRO_VERSION=/) != -1) {
vf.WriteLine(s); vf.WriteLine(s);
verMicro = s.substring(s.indexOf("=") + 1, s.length) verMicro = s.substring(s.indexOf("=") + 1, s.length)
} else if(s.search(/^LIBXML_MICRO_VERSION_SUFFIX=/) != -1) {
vf.WriteLine(s);
verMicroSuffix = s.substring(s.indexOf("=") + 1, s.length)
} }
} }
cf.Close(); cf.Close();
@@ -222,7 +225,7 @@ function configureLibxml()
s = new String(ln); s = new String(ln);
if (s.search(/\@VERSION\@/) != -1) { if (s.search(/\@VERSION\@/) != -1) {
of.WriteLine(s.replace(/\@VERSION\@/, of.WriteLine(s.replace(/\@VERSION\@/,
verMajor + "." + verMinor + "." + verMicro)); verMajor + "." + verMinor + "." + verMicro + verMicroSuffix));
} else if (s.search(/\@LIBXML_VERSION_NUMBER\@/) != -1) { } else if (s.search(/\@LIBXML_VERSION_NUMBER\@/) != -1) {
of.WriteLine(s.replace(/\@LIBXML_VERSION_NUMBER\@/, of.WriteLine(s.replace(/\@LIBXML_VERSION_NUMBER\@/,
verMajor*10000 + verMinor*100 + verMicro*1)); verMajor*10000 + verMinor*100 + verMicro*1));