2003-08-05 03:20:15 +02:00
|
|
|
#!/bin/bash
|
2000-12-10 05:04:56 +01:00
|
|
|
|
2001-09-28 00:44:24 +02:00
|
|
|
# Runs doxygen and massages the output files.
|
2010-03-04 03:55:08 +01:00
|
|
|
# Copyright (C) 2001, 2002, 2003, 2004, 2008, 2009, 2010
|
2009-04-29 07:12:00 +02:00
|
|
|
# Free Software Foundation, Inc.
|
2001-03-25 04:28:07 +02:00
|
|
|
#
|
2010-03-04 03:55:08 +01:00
|
|
|
# Synopsis: run_doxygen --mode=[html|latex|man|xml] --host_alias=<alias> \
|
2010-02-19 04:30:46 +01:00
|
|
|
# v3srcdir \
|
|
|
|
# v3builddir \
|
|
|
|
# shortname
|
2001-03-25 04:28:07 +02:00
|
|
|
#
|
2001-11-24 04:28:27 +01:00
|
|
|
# Originally hacked together by Phil Edwards <pme@gcc.gnu.org>
|
2000-12-10 05:04:56 +01:00
|
|
|
|
2001-03-25 04:28:07 +02:00
|
|
|
|
2001-06-11 15:04:07 +02:00
|
|
|
# We can check now that the version of doxygen is >= this variable.
|
2010-02-19 04:30:46 +01:00
|
|
|
DOXYVER=1.6.1
|
2001-04-05 23:09:24 +02:00
|
|
|
|
|
|
|
find_doxygen() {
|
2003-08-05 03:20:15 +02:00
|
|
|
local -r v_required=`echo $DOXYVER | \
|
2010-03-04 03:55:08 +01:00
|
|
|
awk -F. '{if(NF<3)$3=0;print ($1*100+$2)*100+$3}'`
|
2003-08-05 03:20:15 +02:00
|
|
|
local testing_version doxygen maybedoxy v_found
|
2001-04-05 23:09:24 +02:00
|
|
|
# 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`
|
2001-06-11 15:04:07 +02:00
|
|
|
if test -n "$testing_version"; then
|
|
|
|
v_found=`echo $testing_version | \
|
2010-03-04 03:55:08 +01:00
|
|
|
awk -F. '{if(NF<3)$3=0;print ($1*100+$2)*100+$3}'`
|
2001-06-11 15:04:07 +02:00
|
|
|
if test $v_found -ge $v_required; then
|
2010-03-04 03:55:08 +01:00
|
|
|
doxygen="$maybedoxy"
|
|
|
|
break
|
2001-06-11 15:04:07 +02:00
|
|
|
fi
|
2001-04-05 23:09:24 +02:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
if test -z "$doxygen"; then
|
2010-03-04 03:55:08 +01:00
|
|
|
echo run_doxygen error: Could not find Doxygen $DOXYVER in path. 1>&2
|
|
|
|
print_usage
|
2001-04-05 23:09:24 +02:00
|
|
|
fi
|
2003-08-05 03:20:15 +02:00
|
|
|
# We need to use other tools from the same package/version.
|
|
|
|
echo :: Using Doxygen tools from ${dir}.
|
|
|
|
PATH=$dir:$PATH
|
|
|
|
hash -r
|
2001-04-05 23:09:24 +02:00
|
|
|
}
|
2001-03-25 04:28:07 +02:00
|
|
|
|
|
|
|
print_usage() {
|
|
|
|
cat 1>&2 <<EOF
|
2004-11-16 09:03:19 +01:00
|
|
|
Usage: run_doxygen --mode=MODE --host_alias=BUILD_ALIAS [<options>]
|
2010-03-04 03:55:08 +01:00
|
|
|
<v3-src-dir> <v3-build-dir> <shortnamesp>
|
2001-03-25 04:28:07 +02:00
|
|
|
MODE is one of:
|
2010-03-04 03:55:08 +01:00
|
|
|
html Generate user-level HTML library documentation.
|
|
|
|
man Generate user-level man pages.
|
|
|
|
xml Generate user-level XML pages.
|
|
|
|
latex Generate user-level LaTeX pages.
|
2001-03-25 04:28:07 +02:00
|
|
|
|
2004-11-15 22:59:18 +01:00
|
|
|
BUILD_ALIAS is the GCC build alias set at configure time.
|
|
|
|
|
2001-03-25 04:28:07 +02:00
|
|
|
Note: Requires Doxygen ${DOXYVER} or later; get it at
|
|
|
|
ftp://ftp.stack.nl/pub/users/dimitri/doxygen-${DOXYVER}.src.tar.gz
|
|
|
|
|
|
|
|
EOF
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
parse_options() {
|
|
|
|
for o
|
|
|
|
do
|
|
|
|
# Blatantly ripped from autoconf, er, I mean, "gratefully standing
|
|
|
|
# on the shoulders of those giants who have gone before us."
|
|
|
|
case "$o" in
|
|
|
|
-*=*) arg=`echo "$o" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
|
|
*) arg= ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$o" in
|
|
|
|
--mode=*)
|
2010-03-04 03:55:08 +01:00
|
|
|
mode=$arg ;;
|
2004-11-16 09:03:19 +01:00
|
|
|
--host_alias=*)
|
2010-03-04 03:55:08 +01:00
|
|
|
host_alias=$arg ;;
|
2004-11-16 09:03:19 +01:00
|
|
|
--mode | --host_alias | --help | -h)
|
2010-03-04 03:55:08 +01:00
|
|
|
print_usage ;;
|
2001-03-25 04:28:07 +02:00
|
|
|
*)
|
2010-03-04 03:55:08 +01:00
|
|
|
# this turned out to be a mess, maybe change to --srcdir=, etc
|
|
|
|
if test $srcdir = unset; then
|
|
|
|
srcdir=$o
|
|
|
|
elif test $outdir = unset; then
|
|
|
|
builddir=${o}
|
|
|
|
outdir=${o}/doc/doxygen
|
|
|
|
elif test $shortname = unset; then
|
|
|
|
shortname=$o
|
|
|
|
else
|
|
|
|
echo run_doxygen error: Too many arguments 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
2001-03-25 04:28:07 +02:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# script begins here
|
|
|
|
mode=unset
|
2004-11-16 09:03:19 +01:00
|
|
|
host_alias=unset
|
2001-03-25 04:28:07 +02:00
|
|
|
srcdir=unset
|
|
|
|
outdir=unset
|
2010-02-19 04:30:46 +01:00
|
|
|
shortname=unset
|
2003-08-27 04:31:27 +02:00
|
|
|
do_html=false
|
2010-03-04 03:55:08 +01:00
|
|
|
do_man=false
|
|
|
|
do_xml=false
|
|
|
|
do_latex=false
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
enabled_sections=
|
2003-09-13 22:58:27 +02:00
|
|
|
generate_tagfile=
|
2002-04-02 04:07:22 +02:00
|
|
|
DATEtext=`date '+%Y-%m-%d'`
|
2001-03-25 04:28:07 +02:00
|
|
|
|
locale_facets.h (isspace, [...]): Add doxygen markup.
2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (isspace, isprint, isupper,
islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
toupper, tolower): Add doxygen markup.
(codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
time_get_byname, time_put_byname, moneypunct_byname,
messages_byname): Same.
* include/std/std_fstream.h: Remove superfluous markup.
* include/std/std_sstream.h: Same.
* include/std/std_streambuf.h: Same.
* include/ext/enc_filebuf.h: Adjust markup.
* include/ext/stdio_filebuf.h: Same.
* include/ext/stdio_sync_filebuf.h: Same.
* include/bits/codecvt.h: Same.
* config/os/gnu-linux/ctype_base.h: Same.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
* include/tr1/array: Add markup.
* include/tr1/tuple: Same.
* docs/doxygen/run_doxygen: Print arguments.
* docs/doxygen/user.cfg.in: Tweaks.
From-SVN: r91080
2004-11-23 10:18:41 +01:00
|
|
|
# Show how this script is called.
|
|
|
|
echo run_doxygen $*
|
|
|
|
|
2001-03-25 04:28:07 +02:00
|
|
|
parse_options $*
|
2001-04-05 23:09:24 +02:00
|
|
|
find_doxygen
|
2001-03-25 04:28:07 +02:00
|
|
|
|
2010-02-19 04:30:46 +01:00
|
|
|
if test $srcdir = unset || test $outdir = unset || test $mode = unset || test $shortname = unset || test $host_alias = unset; then
|
2001-03-25 04:28:07 +02:00
|
|
|
# this could be better
|
|
|
|
echo run_doxygen error: You have not given enough information...! 1>&2
|
|
|
|
print_usage
|
|
|
|
fi
|
|
|
|
|
|
|
|
case x"$mode" in
|
2008-01-18 09:16:51 +01:00
|
|
|
xhtml)
|
2003-09-13 22:58:27 +02:00
|
|
|
do_html=true
|
|
|
|
enabled_sections=maint
|
2008-01-18 09:16:51 +01:00
|
|
|
generate_tagfile="$outdir/html/libstdc++.tag"
|
2003-09-13 22:58:27 +02:00
|
|
|
;;
|
2010-03-04 03:55:08 +01:00
|
|
|
xlatex)
|
|
|
|
do_latex=true
|
|
|
|
enabled_sections=maint
|
|
|
|
;;
|
2003-09-13 22:58:27 +02:00
|
|
|
xman)
|
|
|
|
do_man=true
|
|
|
|
;;
|
2008-02-11 01:01:33 +01:00
|
|
|
xxml)
|
|
|
|
do_xml=true
|
|
|
|
enabled_sections=maint
|
|
|
|
;;
|
2001-03-25 04:28:07 +02:00
|
|
|
*)
|
|
|
|
echo run_doxygen error: $mode is an invalid mode 1>&2
|
|
|
|
exit 1 ;;
|
|
|
|
esac
|
|
|
|
|
2010-02-19 04:30:46 +01:00
|
|
|
case x"$shortname" in
|
|
|
|
xYES)
|
|
|
|
;;
|
|
|
|
xNO)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo run_doxygen error: $shortname is invalid 1>&2
|
|
|
|
exit 1 ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2001-07-11 21:35:49 +02:00
|
|
|
mkdir -p $outdir
|
|
|
|
chmod u+w $outdir
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
|
2008-02-11 01:01:33 +01:00
|
|
|
if $do_xml; then
|
|
|
|
mkdir -p $outdir/xml
|
|
|
|
fi
|
|
|
|
|
2001-03-25 04:28:07 +02:00
|
|
|
(
|
|
|
|
set -e
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
cd $builddir
|
2003-05-30 21:12:56 +02:00
|
|
|
sed -e "s=@outdir@=${outdir}=g" \
|
|
|
|
-e "s=@srcdir@=${srcdir}=g" \
|
2010-02-19 04:30:46 +01:00
|
|
|
-e "s=@shortname@=${shortname}=g" \
|
2006-11-29 21:59:22 +01:00
|
|
|
-e "s=@builddir@=${builddir}=g" \
|
2004-11-16 09:03:19 +01:00
|
|
|
-e "s=@host_alias@=${host_alias}=g" \
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
-e "s=@enabled_sections@=${enabled_sections}=" \
|
|
|
|
-e "s=@do_html@=${do_html}=" \
|
2010-03-04 03:55:08 +01:00
|
|
|
-e "s=@do_latex@=${do_latex}=" \
|
|
|
|
-e "s=@do_man@=${do_man}=" \
|
|
|
|
-e "s=@do_xml@=${do_xml}=" \
|
|
|
|
-e "s=@generate_tagfile@=${generate_tagfile}=" \
|
|
|
|
${srcdir}/doc/doxygen/user.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 $?
|
|
|
|
)
|
|
|
|
ret=$?
|
|
|
|
test $ret -ne 0 && exit $ret
|
|
|
|
|
|
|
|
if $do_latex; then
|
|
|
|
mkdir -p $outdir/latex
|
|
|
|
fi
|
|
|
|
|
|
|
|
(
|
|
|
|
set -e
|
|
|
|
cd $builddir
|
|
|
|
sed -e "s=@outdir@=${outdir}=g" \
|
|
|
|
-e "s=@srcdir@=${srcdir}=g" \
|
|
|
|
-e "s=@shortname@=${shortname}=g" \
|
|
|
|
-e "s=@builddir@=${builddir}=g" \
|
|
|
|
-e "s=@host_alias@=${host_alias}=g" \
|
|
|
|
-e "s=@enabled_sections@=${enabled_sections}=" \
|
|
|
|
-e "s=@do_html@=${do_html}=" \
|
|
|
|
-e "s=@do_latex@=${do_latex}=" \
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
-e "s=@do_man@=${do_man}=" \
|
2008-02-11 01:01:33 +01:00
|
|
|
-e "s=@do_xml@=${do_xml}=" \
|
2003-09-13 22:58:27 +02:00
|
|
|
-e "s=@generate_tagfile@=${generate_tagfile}=" \
|
2008-01-18 09:16:51 +01:00
|
|
|
${srcdir}/doc/doxygen/user.cfg.in > ${outdir}/${mode}.cfg
|
2001-06-11 15:04:07 +02:00
|
|
|
echo :: NOTE that this may take some time...
|
2003-08-05 03:20:15 +02:00
|
|
|
echo doxygen ${outdir}/${mode}.cfg
|
|
|
|
doxygen ${outdir}/${mode}.cfg
|
2010-03-04 03:55:08 +01:00
|
|
|
|
|
|
|
# Also drop in the header file and style sheet
|
|
|
|
cd ${outdir}/${mode}
|
|
|
|
doxygen -w latex header.tex doxygen.sty
|
2001-06-11 15:04:07 +02:00
|
|
|
echo :: Finished, exit code was $?
|
2010-03-04 03:55:08 +01:00
|
|
|
echo ::
|
|
|
|
echo :: LaTeX pages begin with
|
|
|
|
echo :: ${outdir}/latex/refman.tex
|
2001-03-25 04:28:07 +02:00
|
|
|
)
|
2003-04-30 01:48:52 +02:00
|
|
|
ret=$?
|
|
|
|
test $ret -ne 0 && exit $ret
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
|
2003-08-27 04:31:27 +02:00
|
|
|
if $do_html; then
|
2008-01-18 09:16:51 +01:00
|
|
|
cd ${outdir}/html
|
2003-08-05 03:20:15 +02:00
|
|
|
|
|
|
|
#doxytag -t libstdc++.tag . > /dev/null 2>&1
|
2003-08-27 04:31:27 +02:00
|
|
|
sed -e '/<path>/d' libstdc++.tag > TEMP
|
|
|
|
mv TEMP libstdc++.tag
|
2003-08-05 03:20:15 +02:00
|
|
|
|
2008-01-18 09:16:51 +01:00
|
|
|
sed -e "s=@DATE@=${DATEtext}=" \
|
|
|
|
${srcdir}/doc/doxygen/mainpage.html > index.html
|
2003-04-30 01:48:52 +02:00
|
|
|
|
2003-02-26 01:02:16 +01:00
|
|
|
# The following bit of line noise changes annoying
|
|
|
|
# std::foo < typename _Ugly1, typename _Ugly2, .... _DefaultUgly17 >
|
|
|
|
# to user-friendly
|
|
|
|
# std::foo
|
|
|
|
# in the major "Compound List" page.
|
2002-07-18 00:02:32 +02:00
|
|
|
sed -e 's=\(::[[:alnum:]_]*\)< .* >=\1=' annotated.html > annstrip.html
|
|
|
|
mv annstrip.html annotated.html
|
2003-04-30 01:48:52 +02:00
|
|
|
|
2008-01-18 09:16:51 +01:00
|
|
|
cp ${srcdir}/doc/doxygen/tables.html tables.html
|
2002-07-18 00:02:32 +02:00
|
|
|
echo ::
|
|
|
|
echo :: HTML pages begin with
|
2008-01-18 09:16:51 +01:00
|
|
|
echo :: ${outdir}/html/index.html
|
2003-08-27 04:31:27 +02:00
|
|
|
fi
|
2001-03-25 04:28:07 +02:00
|
|
|
|
2001-09-28 00:44:24 +02:00
|
|
|
# Mess with the man pages. We don't need documentation of the internal
|
|
|
|
# headers, since the man pages for those contain nothing useful anyhow. The
|
|
|
|
# man pages for doxygen modules need to be renamed (or deleted). And the
|
|
|
|
# generated #include lines need to be changed from the internal names to the
|
|
|
|
# standard ones (e.g., "#include <stl_tempbuf.h>" -> "#include <memory>").
|
2003-08-27 04:31:27 +02:00
|
|
|
if $do_man; then
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
echo ::
|
2001-09-28 00:44:24 +02:00
|
|
|
echo :: Fixing up the man pages...
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
cd $outdir/man/man3
|
|
|
|
|
c_io_stdio.h: Correct grammar in comments.
2001-11-02 Phil Edwards <pme@gcc.gnu.org>
* config/io/c_io_stdio.h: Correct grammar in comments.
* docs/doxygen/Intro.3: Expand "top-level" man page.
* docs/doxygen/doxygroups.cc: New module definitions (comments).
* docs/doxygen/mainpage.doxy: Tweaks.
* docs/doxygen/run_doxygen: Update Doxygen version, massage man pages.
Add @file hooks so that headers are considered to be documented.
* include/bits/basic_ios.h, include/bits/basic_file.h,
include/bits/basic_string.h, include/bits/boost_concept_check.h,
include/bits/char_traits.h, include/bits/codecvt.h,
include/bits/concept_check.h, include/bits/cpp_type_traits.h,
include/bits/fpos.h, include/bits/gslice.h, include/bits/gslice_array.h,
include/bits/indirect_array.h, include/bits/ios_base.h,
include/bits/locale_facets.h, include/bits/localefwd.h,
include/bits/mask_array.h, include/bits/pthread_allocimpl.h,
include/bits/slice.h, include/bits/slice_array.h,
include/bits/std_algorithm.h, include/bits/std_bitset.h,
include/bits/std_complex.h, include/bits/std_deque.h,
include/bits/std_fstream.h, include/bits/std_functional.h,
include/bits/std_iomanip.h, include/bits/std_ios.h,
include/bits/std_iosfwd.h, include/bits/std_iostream.h,
include/bits/std_istream.h, include/bits/std_iterator.h,
include/bits/std_limits.h, include/bits/std_list.h,
include/bits/std_locale.h, include/bits/std_map.h,
include/bits/std_memory.h, include/bits/std_numeric.h,
include/bits/std_ostream.h, include/bits/std_queue.h,
include/bits/std_set.h, include/bits/std_sstream.h,
include/bits/std_stack.h, include/bits/std_streambuf.h,
include/bits/std_string.h, include/bits/std_utility.h,
include/bits/std_valarray.h, include/bits/std_vector.h,
include/bits/stl_algo.h, include/bits/stl_alloc.h,
include/bits/stl_bvector.h, include/bits/stl_construct.h,
include/bits/stl_deque.h, include/bits/stl_heap.h,
include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
include/bits/stl_iterator_base_types.h, include/bits/stl_list.h,
include/bits/stl_map.h, include/bits/stl_multimap.h,
include/bits/stl_multiset.h, include/bits/stl_numeric.h,
include/bits/stl_pair.h, include/bits/stl_pthread_alloc.h,
include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
include/bits/stl_relops.h, include/bits/stl_set.h,
include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
include/bits/stl_threads.h, include/bits/stl_tree.h,
include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
include/bits/stringfwd.h, include/bits/type_traits.h,
include/bits/valarray_array.h, include/bits/valarray_meta.h:
Add hooks, tweak comments only.
* include/bits/stl_algobase.h (swap, min, iter_swap): Also
document these functions.
* include/bits/stl_function.h: Tweak link comments.
From-SVN: r46717
2001-11-02 18:38:11 +01:00
|
|
|
# File names with embedded spaces (EVIL!) need to be....? renamed or removed?
|
2003-08-27 04:31:27 +02:00
|
|
|
find . -name "* *" -print0 | xargs -0r rm # requires GNU tools
|
2001-09-28 00:44:24 +02:00
|
|
|
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
# man pages are for functions/types/other entities, not source files
|
|
|
|
# directly. who the heck would type "man foo.h" anyhow?
|
2009-04-29 07:12:00 +02:00
|
|
|
find . -name "[a-z]*" -a ! -name "std_*" -print | xargs rm
|
2009-02-19 09:15:15 +01:00
|
|
|
rm -f *.h.3 *.hpp.3 *config* *.cc.3 *.tcc.3 *_t.3
|
2009-04-29 07:12:00 +02:00
|
|
|
#rm ext_*.3 tr1_*.3 debug_*.3
|
2009-02-19 09:15:15 +01:00
|
|
|
|
2002-03-27 22:41:36 +01:00
|
|
|
# this is used to examine what we would have deleted, for debugging
|
|
|
|
#mkdir trash
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
#find . -name "[a-z]*" -a ! -name "std_*" -print | xargs -i mv {} trash
|
|
|
|
#mv *.h.3 *config* *.cc.3 *.tcc.3 *_t.3 trash
|
2001-09-28 00:44:24 +02:00
|
|
|
|
|
|
|
# Standardize the displayed header names. If anyone who knows perl cares
|
|
|
|
# enough to rewrite all this, feel free. This only gets run once a century,
|
|
|
|
# and I'm off getting coffee then anyhow, so I didn't care enough to make
|
|
|
|
# this super-fast.
|
2008-01-18 09:16:51 +01:00
|
|
|
g++ ${srcdir}/doc/doxygen/stdheader.cc -o ./stdheader
|
2001-09-28 00:44:24 +02:00
|
|
|
problematic=`egrep -l '#include <.*_.*>' [a-z]*.3`
|
|
|
|
for f in $problematic; do
|
|
|
|
# this is also slow, but safe and easy to debug
|
2002-11-21 09:16:32 +01:00
|
|
|
oldh=`sed -n '/fC#include </s/.*<\(.*\)>.*/\1/p' $f`
|
2001-09-28 00:44:24 +02:00
|
|
|
newh=`echo $oldh | ./stdheader`
|
|
|
|
sed "s=${oldh}=${newh}=" $f > TEMP
|
|
|
|
mv TEMP $f
|
|
|
|
done
|
|
|
|
rm stdheader
|
|
|
|
|
2001-11-24 04:28:27 +01:00
|
|
|
# Some of the pages for generated modules have text that confuses certain
|
|
|
|
# implementations of man(1), e.g., Linux's. We need to have another top-level
|
|
|
|
# *roff tag to /stop/ the .SH NAME entry.
|
2009-04-29 07:12:00 +02:00
|
|
|
problematic=`egrep --files-without-match '^\.SH SYNOPSIS' [A-Z]*.3`
|
2009-02-19 09:15:15 +01:00
|
|
|
#problematic='Containers.3 Sequences.3 Assoc_containers.3 Iterator_types.3'
|
2009-04-29 07:12:00 +02:00
|
|
|
|
|
|
|
for f in $problematic; do
|
|
|
|
sed '/^\.SH NAME/{
|
|
|
|
n
|
|
|
|
a\
|
|
|
|
\
|
|
|
|
.SH SYNOPSIS
|
|
|
|
}' $f > TEMP
|
|
|
|
mv TEMP $f
|
|
|
|
done
|
2001-11-24 04:28:27 +01:00
|
|
|
|
2003-02-26 01:02:16 +01:00
|
|
|
# Also, break this (generated) line up. It's ugly as sin.
|
|
|
|
problematic=`grep -l '[^^]Definition at line' *.3`
|
|
|
|
for f in $problematic; do
|
|
|
|
sed 's/Definition at line/\
|
|
|
|
.PP\
|
|
|
|
&/' $f > TEMP
|
|
|
|
mv TEMP $f
|
|
|
|
done
|
|
|
|
|
2008-01-18 09:16:51 +01:00
|
|
|
cp ${srcdir}/doc/doxygen/Intro.3 C++Intro.3
|
2003-02-26 01:02:16 +01:00
|
|
|
|
|
|
|
# Why didn't I do this at the start? Were rabid weasels eating my brain?
|
|
|
|
# Who the fsck would "man std_vector" when the class isn't named that?
|
2008-01-18 09:16:51 +01:00
|
|
|
|
|
|
|
# First, deal with nested namespaces.
|
2010-01-12 02:37:06 +01:00
|
|
|
for f in *chrono_*; do
|
|
|
|
newname=`echo $f | sed 's/chrono_/chrono::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
for f in *__debug_*; do
|
|
|
|
newname=`echo $f | sed 's/__debug_/__debug::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
for f in *decimal_*; do
|
|
|
|
newname=`echo $f | sed 's/decimal_/decimal::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2008-01-18 09:16:51 +01:00
|
|
|
for f in *__detail_*; do
|
|
|
|
newname=`echo $f | sed 's/__detail_/__detail::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
for f in *__parallel_*; do
|
|
|
|
newname=`echo $f | sed 's/__parallel_/__parallel::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2009-12-21 22:26:45 +01:00
|
|
|
for f in *__profile_*; do
|
|
|
|
newname=`echo $f | sed 's/__profile_/__profile::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2010-01-12 02:37:06 +01:00
|
|
|
for f in *__atomic0_*; do
|
|
|
|
newname=`echo $f | sed 's/__atomic0_/__atomic0::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
for f in *__atomic2_*; do
|
|
|
|
newname=`echo $f | sed 's/__atomic2_/__atomic2::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2008-01-18 09:16:51 +01:00
|
|
|
|
|
|
|
# Then, clean up other top-level namespaces.
|
2004-11-24 05:11:23 +01:00
|
|
|
for f in std_tr1_*; do
|
|
|
|
newname=`echo $f | sed 's/^std_tr1_/std::tr1::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2003-02-26 01:02:16 +01:00
|
|
|
for f in std_*; do
|
|
|
|
newname=`echo $f | sed 's/^std_/std::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
for f in __gnu_cxx_*; do
|
|
|
|
newname=`echo $f | sed 's/^__gnu_cxx_/__gnu_cxx::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2008-01-18 09:16:51 +01:00
|
|
|
for f in __gnu_debug_*; do
|
|
|
|
newname=`echo $f | sed 's/^__gnu_debug_/__gnu_debug::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
for f in __gnu_parallel_*; do
|
|
|
|
newname=`echo $f | sed 's/^__gnu_parallel_/__gnu_parallel::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2009-12-21 22:26:45 +01:00
|
|
|
for f in __gnu_profile_*; do
|
|
|
|
newname=`echo $f | sed 's/^__gnu_profile_/__gnu_profile::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
for f in __gnu_pbds_*; do
|
|
|
|
newname=`echo $f | sed 's/^__gnu_pbds_/__gnu_pbds::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2009-04-29 07:12:00 +02:00
|
|
|
for f in __cxxabiv1_*; do
|
|
|
|
newname=`echo $f | sed 's/^__cxxabiv1_/abi::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
2004-11-05 20:58:03 +01:00
|
|
|
|
2010-01-12 02:37:06 +01:00
|
|
|
# Then piecemeal nested classes
|
|
|
|
for f in *__future_base_*; do
|
|
|
|
newname=`echo $f | sed 's/__future_base_/__future_base::/'`
|
|
|
|
mv $f $newname
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-01-18 09:16:51 +01:00
|
|
|
# Generic removal bits, where there are things in the generated man
|
2004-11-05 20:58:03 +01:00
|
|
|
# pages that need to be killed.
|
|
|
|
for f in *_libstdc__-v3_*; do
|
2010-03-04 03:55:08 +01:00
|
|
|
rm $f
|
2004-05-20 20:52:09 +02:00
|
|
|
done
|
2004-11-05 20:58:03 +01:00
|
|
|
|
|
|
|
for f in *_src_*; do
|
2010-03-04 03:55:08 +01:00
|
|
|
rm $f
|
2003-02-26 01:02:16 +01:00
|
|
|
done
|
|
|
|
|
2004-11-05 20:58:03 +01:00
|
|
|
|
2003-02-26 01:02:16 +01:00
|
|
|
# Also, for some reason, typedefs don't get their own man pages. Sigh.
|
|
|
|
for f in ios streambuf istream ostream iostream stringbuf \
|
2010-03-04 03:55:08 +01:00
|
|
|
istringstream ostringstream stringstream filebuf ifstream \
|
|
|
|
ofstream fstream string;
|
2003-02-26 01:02:16 +01:00
|
|
|
do
|
|
|
|
echo ".so man3/std::basic_${f}.3" > std::${f}.3
|
|
|
|
echo ".so man3/std::basic_${f}.3" > std::w${f}.3
|
|
|
|
done
|
2001-03-25 04:28:07 +02:00
|
|
|
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
echo ::
|
|
|
|
echo :: Man pages in ${outdir}/man
|
2003-08-27 04:31:27 +02:00
|
|
|
fi
|
2001-09-28 00:44:24 +02:00
|
|
|
|
|
|
|
# all done
|
2001-03-25 04:28:07 +02:00
|
|
|
echo ::
|
|
|
|
|
|
|
|
exit 0
|