summaryrefslogtreecommitdiff
path: root/libstdc++-v3/docs
diff options
context:
space:
mode:
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-11 13:04:07 +0000
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-11 13:04:07 +0000
commitb34a39af2c8211b61b27c4e3343ac8213e477c58 (patch)
tree3770cf6b3ffffcb3f201c63cbb9c4b96cbe5c5b9 /libstdc++-v3/docs
parente5e1c255362e1e4818ad541be850be17ec4be781 (diff)
downloadgcc-b34a39af2c8211b61b27c4e3343ac8213e477c58.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43184 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/docs')
-rw-r--r--libstdc++-v3/docs/doxygen/run_doxygen21
1 files changed, 14 insertions, 7 deletions
diff --git a/libstdc++-v3/docs/doxygen/run_doxygen b/libstdc++-v3/docs/doxygen/run_doxygen
index 266fe3ae625..b329a1304d2 100644
--- a/libstdc++-v3/docs/doxygen/run_doxygen
+++ b/libstdc++-v3/docs/doxygen/run_doxygen
@@ -5,15 +5,16 @@
# Synopsis: run_doxygen --mode=[user|maint] v3srcdir v3builddir
#
# 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
-# 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 +23,13 @@ find_doxygen() {
# 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
@@ -70,7 +75,7 @@ parse_options() {
blank=
Id=is
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
;;
*)
@@ -117,8 +122,10 @@ test -d $outdir || (mkdir -p $outdir ; chmod u+w $outdir)
sed -e "s=@outdir@=${outdir}=" \
-e "s=@srcdir@=${srcdir}=" \
docs/doxygen/${mode}.cfg.in > ${outdir}/${mode}.cfg
+ echo :: NOTE that this may take some time...
echo $doxygen ${outdir}/${mode}.cfg
$doxygen ${outdir}/${mode}.cfg
+ echo :: Finished, exit code was $?
)
# mess with output files here?