[docs] xmldocs - docelic modified bin/stattree

docs at icdevgroup.org docs at icdevgroup.org
Mon Sep 26 17:31:04 EDT 2005


User:      docelic
Date:      2005-09-26 21:31:04 GMT
Modified:  bin      stattree
Log:
* In the ./configure script we removed the VERSION= line, so
  adjust the code to read which version cvs-head actually is from a
  different place.

Revision  Changes    Path
1.47      +9 -5      xmldocs/bin/stattree


rev 1.47, prev_rev 1.46
Index: stattree
===================================================================
RCS file: /var/cvs/xmldocs/bin/stattree,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- stattree	7 Sep 2005 16:29:16 -0000	1.46
+++ stattree	26 Sep 2005 21:31:04 -0000	1.47
@@ -519,11 +519,15 @@
 		# ICVERSION must be known here, or someone's playing, or
 		# it's a pre-5.0 version which doesnt have that.
 		unless ( $hash{version} ) {
-			warn "Wasn't able to determine " .
-				'^ICVERSION=([\'"])(\d+\.\d+\.\d+)\1 from the main ' .
-				"./configure script. Will use one from directory name ($i{ver}).\n"
-				unless $i{ver} =~ /^4/; # ignore warning for 4.x versions
-				$hash{version} = $i{ver};
+
+			# In 5.3.1, we removed VERSION = from the ./configure script,
+			# so this will fail in the future.
+			#
+			# So if this is CVS Head that we can't retrieve version for,
+			# read XMLDOCS_CUR_DEVEL (variable exported by Makefile).
+			# Else, take that version == directory name.
+			$hash{version} = ( $i{ver} eq 'cvs-head' ) ? 
+				$ENV{XMLDOCS_CUR_DEVEL} : $i{ver};
 		}
 	}
 








More information about the docs mailing list