Added a test for the version of intltool because some of the recent

2004-03-22  Raphael Quinet  <quinet@gamers.org>

	* autogen.sh: Added a test for the version of intltool because
	some of the recent versions are known to break the Tips file.
	This fixes bug #137502.  The message should be updated when a new
	version of libtool is released.
This commit is contained in:
Raphael Quinet 2004-03-22 06:47:50 +00:00 committed by Raphaël Quinet
parent f87a2f64b3
commit 6721b96860
2 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2004-03-22 Raphaël Quinet <quinet@gamers.org>
* autogen.sh: Added a test for the version of intltool because
some of the recent versions are known to break the Tips file.
This fixes bug #137502. The message should be updated when a new
version of libtool is released.
2004-03-22 Simon Budig <simon@gimp.org>
* app/widgets/gimpdock.c: set the minimum of the

View File

@ -133,6 +133,34 @@ else
DIE=1
fi
# Special test for problematic versions of intltool. Details at:
# http://bugzilla.gnome.org/show_bug.cgi?id=137502
# Print a warning message, but do not exit.
INTLTOOL_BUG_MIN_VERSION=0.28
INTLTOOL_BUG_MAX_VERSION=0.31
echo -n "checking for intltool < $INTLTOOL_BUG_MIN_VERSION or > $INTLTOOL_BUG_MAX_VERSION ... "
if (intltoolize --version) < /dev/null > /dev/null 2>&1; then
VER=`intltoolize --version \
| grep intltoolize | sed "s/.* \([0-9.]*\)/\1/"`
if expr $VER \>= $INTLTOOL_BUG_MIN_VERSION > /dev/null; then
if expr $VER \<= $INTLTOOL_BUG_MAX_VERSION > /dev/null; then
echo "no (found version $VER)"
echo
echo " Versions of intltool between 0.28 and 0.31 are known to"
echo " generate incorrect XML output. Please consider using an"
echo " earlier version of intltool in order to avoid these"
echo " problems until a newer version of intltool is released."
else
echo "yes"
fi
else
echo "yes"
fi
else
echo "not found"
fi
if test "$DIE" -eq 1; then
echo
echo "Please install/upgrade the missing tools and call me again."