Commit cff75d2e by Matthias Klose Committed by Phil Edwards

run_doxygen (find_doxygen): Tweak version check.

2001-06-11  Matthias Klose  <doko@debian.org>
            Phil Edwards  <pme@sources.redhat.com>

	* docs/doxygen/run_doxygen (find_doxygen):  Tweak version check.
	(main script):  Echo more information.

Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>

From-SVN: r43184
parent bd91de63
2001-06-11 Matthias Klose <doko@debian.org>
Phil Edwards <pme@sources.redhat.com>
* docs/doxygen/run_doxygen (find_doxygen): Tweak version check.
(main script): Echo more information.
2001-06-10 Benjamin Kosnik <bkoz@redhat.com> 2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwchar.h: Alphabetize. * include/c_std/bits/std_cwchar.h: Alphabetize.
......
...@@ -5,15 +5,16 @@ ...@@ -5,15 +5,16 @@
# Synopsis: run_doxygen --mode=[user|maint] v3srcdir v3builddir # Synopsis: run_doxygen --mode=[user|maint] v3srcdir v3builddir
# #
# Originally hacked together by Phil Edwards <pme@sources.redhat.com> # Originally hacked together by Phil Edwards <pme@sources.redhat.com>
# $Id: run_doxygen,v 1.3 2001/04/05 21:09:24 pme Exp $ # $Id: run_doxygen,v 1.4 2001/04/29 01:40:34 pme Exp $
# We can check now that the version of doxygen is = this variable. We need # We can check now that the version of doxygen is >= this variable.
# to check for the >= case eventually.
DOXYVER=1.2.6 DOXYVER=1.2.6
doxygen= doxygen=
find_doxygen() { find_doxygen() {
v_required=`echo $DOXYVER | \
awk -F. '{if(NF<3)$3=0;print ($1*100+$2)*100+$3}'`
testing_version= testing_version=
# thank you goat book # thank you goat book
set `IFS=:; X="$PATH:/usr/local/bin:/bin:/usr/bin"; echo $X` set `IFS=:; X="$PATH:/usr/local/bin:/bin:/usr/bin"; echo $X`
...@@ -22,9 +23,13 @@ find_doxygen() { ...@@ -22,9 +23,13 @@ find_doxygen() {
# AC_EXEEXT could come in useful here # AC_EXEEXT could come in useful here
maybedoxy="$dir/doxygen" maybedoxy="$dir/doxygen"
test -f "$maybedoxy" && testing_version=`$maybedoxy --version` test -f "$maybedoxy" && testing_version=`$maybedoxy --version`
if test -n "$testing_version" && test $testing_version = $DOXYVER; then if test -n "$testing_version"; then
doxygen="$maybedoxy" v_found=`echo $testing_version | \
break 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 fi
done done
if test -z "$doxygen"; then if test -z "$doxygen"; then
...@@ -70,7 +75,7 @@ parse_options() { ...@@ -70,7 +75,7 @@ parse_options() {
blank= blank=
Id=is Id=is
echo You expect this dinky script to track a version? Okay, here echo You expect this dinky script to track a version? Okay, here
echo it $Id: run_doxygen,v 1.3 2001/04/05 21:09:24 pme Exp $blank echo it $Id: run_doxygen,v 1.4 2001/04/29 01:40:34 pme Exp $blank
exit 0 exit 0
;; ;;
*) *)
...@@ -117,8 +122,10 @@ test -d $outdir || (mkdir -p $outdir ; chmod u+w $outdir) ...@@ -117,8 +122,10 @@ test -d $outdir || (mkdir -p $outdir ; chmod u+w $outdir)
sed -e "s=@outdir@=${outdir}=" \ sed -e "s=@outdir@=${outdir}=" \
-e "s=@srcdir@=${srcdir}=" \ -e "s=@srcdir@=${srcdir}=" \
docs/doxygen/${mode}.cfg.in > ${outdir}/${mode}.cfg docs/doxygen/${mode}.cfg.in > ${outdir}/${mode}.cfg
echo :: NOTE that this may take some time...
echo $doxygen ${outdir}/${mode}.cfg echo $doxygen ${outdir}/${mode}.cfg
$doxygen ${outdir}/${mode}.cfg $doxygen ${outdir}/${mode}.cfg
echo :: Finished, exit code was $?
) )
# mess with output files here? # mess with output files here?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment