From 864e133c3cb393bf06302f3f580c9c91ffe95f89 Mon Sep 17 00:00:00 2001 From: Phil Edwards Date: Thu, 5 Apr 2001 21:09:24 +0000 Subject: [PATCH] run_doxygen: Check for the existence of Doxygen. 2001-04-05 Phil Edwards * docs/doxygen/run_doxygen: Check for the existence of Doxygen. From-SVN: r41128 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/docs/doxygen/run_doxygen | 35 ++++++++++++++++++++++++++++++----- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cdac9a7..0ad8777 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2001-04-05 Phil Edwards + + * docs/doxygen/run_doxygen: Check for the existence of Doxygen. + 2001-04-04 Phil Edwards * docs/doxygen/user.cfg.in: Extract all non-private members; diff --git a/libstdc++-v3/docs/doxygen/run_doxygen b/libstdc++-v3/docs/doxygen/run_doxygen index 361949e..e99faab 100644 --- a/libstdc++-v3/docs/doxygen/run_doxygen +++ b/libstdc++-v3/docs/doxygen/run_doxygen @@ -5,12 +5,33 @@ # Synopsis: run_doxygen --mode=[user|maint] v3srcdir v3builddir # # Originally hacked together by Phil Edwards -# $Id$ +# $Id: run_doxygen,v 1.2 2001/03/25 02:28:07 pme Exp $ -# We could check that the version of doxygen is >= this variable, but that's -# just a pain. Punt for now and rely on the maintainer to read this. :-) +# We can check now that the version of doxygen is = this variable. We need +# to check for the >= case eventually. DOXYVER=1.2.6 +doxygen= + +find_doxygen() { + testing_version= + # thank you goat book + set `IFS=:; X="$PATH:/usr/local/bin:/bin:/usr/bin"; echo $X` + for dir + do + # 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 + fi + done + if test -z "$doxygen"; then + echo run_doxygen error: Could not find Doxygen $DOXYVER in path. 1>&2 + print_usage + fi +} print_usage() { cat 1>&2 < ${outdir}/${mode}.cfg - doxygen ${outdir}/${mode}.cfg + echo $doxygen ${outdir}/${mode}.cfg + $doxygen ${outdir}/${mode}.cfg ) # mess with output files here? @@ -108,3 +131,5 @@ echo :: exit 0 +# vim:ts=4:et: + -- 2.7.4