This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Remove xgnatugn in doc generation
- From: Arnaud Charlet <charlet at adacore dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 1 Aug 2014 21:00:32 +0200
- Subject: Re: [Ada] Remove xgnatugn in doc generation
- Authentication-results: sourceware.org; auth=none
- References: <20140801092404 dot GA24552 at adacore dot com> <Pine dot LNX dot 4 dot 64 dot 1408011539150 dot 12217 at digraph dot polyomino dot org dot uk>
> > 2014-08-01 Arnaud Charlet <charlet@adacore.com>
> >
> > * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
> > xgnatugn.adb and ug_words.
>
> Could you check if this needs any changes to the support in
> update_web_docs_svn for generating the online manuals, which would
> previously have run this preprocessing step?
Thanks for the note.
Updated as follows, this should do the trick as far as I can tell:
* update_web_docs_svn: Simplify build of gnat_ugn.
--
Index: update_web_docs_svn
===================================================================
--- update_web_docs_svn (revision 213156)
+++ update_web_docs_svn (working copy)
@@ -20,11 +20,7 @@ MANUALS="cpp
gcj
gfortran
gfc-internals
- gnat_ug_unx
- gnat_ug_vms
- gnat_ug_vxw
- gnat_ug_wnt
- gnat_ugn_unw
+ gnat_ugn
gnat-style
gnat_rm
libgomp
@@ -118,8 +114,6 @@ fi
find gcc -type f \( -name '*.texi' \
-o -path gcc/gcc/doc/install.texi2html \
-o -path gcc/gcc/doc/include/texinfo.tex \
- -o -path gcc/gcc/ada/xgnatugn.adb \
- -o -path gcc/gcc/ada/ug_words \
-o -path gcc/gcc/BASE-VER \
-o -path gcc/gcc/DEV-PHASE \
-o -print0 \) | xargs -0 rm -f
@@ -131,14 +125,6 @@ tar cf docs-sources.tar gcc
# and fdl.texi.
includedir=gcc/gcc/doc/include
-# Generate gnat_ugn_unw
-
-if [ -f gcc/gcc/ada/xgnatugn.adb ]; then
- gnatmake -q gcc/gcc/ada/xgnatugn
- ./xgnatugn unw gcc/gcc/ada/gnat_ugn.texi \
- gcc/gcc/ada/ug_words gnat_ugn_unw.texi
-fi
-
# Generate gcc-vers.texi.
(
echo "@set version-GCC $(cat gcc/gcc/BASE-VER)"
@@ -161,7 +147,7 @@ for file in $MANUALS; do
filename=`find . -name ${file}.texi`
if [ "${filename}" ]; then
includes="-I ${includedir} -I `dirname ${filename}`"
- if [ "$file" = "gnat_ugn_unw" ]; then
+ if [ "$file" = "gnat_ugn" ]; then
includes="$includes -I gcc/gcc/ada"
fi
makeinfo --html $includes -o ${file} ${filename}