This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++-v3: doxygen version check
- To: gcc-patches at gcc dot gnu dot org
- Subject: libstdc++-v3: doxygen version check
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- Date: Sat, 9 Jun 2001 01:44:54 +0200 (MEST)
doxygen-1.2.8 is now out, so the version check fails.
2001-06-09 Matthias Klose <doko@debian.org>
* docs/doxygen/run_doxygen (doxygen): tweak version check.
--- libstdc++-v3/docs/doxygen/run_doxygen~ Tue May 15 07:49:42 2001
+++ libstdc++-v3/docs/doxygen/run_doxygen Sat Jun 9 01:41:21 2001
@@ -8,12 +8,12 @@
# $Id: run_doxygen,v 1.1.4.1 2001/05/14 19:48:55 bkoz Exp $
-# We can check now that the version of doxygen is = this variable. We need
-# to check for the >= case eventually.
+# We can check now that the version of doxygen is >= this variable.
DOXYVER=1.2.6
doxygen=
find_doxygen() {
+ v_required=`echo $DOXYVER | awk -F. '{if(NF<3)$3=0;print ($1*100+$2)*100+$3}'`
testing_version=
# thank you goat book
set `IFS=:; X="$PATH:/usr/local/bin:/bin:/usr/bin"; echo $X`
@@ -22,9 +22,12 @@
# AC_EXEEXT could come in useful here
maybedoxy="$dir/doxygen"
test -f "$maybedoxy" && testing_version=`$maybedoxy --version`
- if test -n "$testing_version" && test $testing_version = $DOXYVER; then
- doxygen="$maybedoxy"
- break
+ if test -n "$testing_version"; then
+ v_found=`echo $testing_version | awk -F. '{if(NF<3)$3=0;print ($1*100+$2)*100+$3}'`
+ if test $v_found -ge $v_required; then
+ doxygen="$maybedoxy"
+ break
+ fi
fi
done
if test -z "$doxygen"; then