[v3] allocator documentation revamp

Jonathan Wakely cow@compsoc.man.ac.uk
Fri Feb 27 17:19:00 GMT 2004


On Thu, Feb 26, 2004 at 11:48:59AM -0600, Benjamin Kosnik wrote:

> 
> >Do you want to keep that change? If so it will have to be put back
> >manually every time documentation.html is regenerated. The simplest
> >solution is to use the generated version, but this means an extra click
> >to get to the allocator docs from the front page.
> 
> I'd prefer the change, but at the same time I'm not up for manually
> re-inserting it after every regeneration. So, this is fine, I think.

OK, I'll commit the regenerated documentation.html over the weekend.

The alternative is something like the attached patch, but this is still
fairly fragile IMHO and sets a precedent for making the Makefile messier.

jon


-- 
"I was born not knowing and have had only a little time to
 change that here and there."
	- Feynman
-------------- next part --------------
Index: docs/html/Makefile
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/docs/html/Makefile,v
retrieving revision 1.8
diff -u -p -b -B -r1.8 Makefile
--- docs/html/Makefile	5 Aug 2003 01:20:15 -0000	1.8
+++ docs/html/Makefile	27 Feb 2004 17:18:21 -0000
@@ -22,7 +22,9 @@ documentation.html: $(wildcard */howto.h
 	awk -v file=ext/howto.html -v "title=Extensions to the Standard Library"\
 	  -f makedoc.awk ext/howto.html >> tmp.middle ;\
 	echo '  </ul>' >> tmp.middle
-	cat tmp.top tmp.middle tmp.bottom > $@
+	cat tmp.top tmp.middle tmp.bottom |\
+	  sed 's@\(<a href="20_util/\)howto.html#5\(">\)@\1allocator.html\2@'\
+	  > $@
 	rm tmp.top tmp.middle tmp.bottom
 
 faq/index.txt: faq/index.html


More information about the Libstdc++ mailing list