dbus/doc Makefile.am,1.10,1.11

Havoc Pennington hp@pdx.freedesktop.org
Sun, 28 Sep 2003 19:23:31 -0700


Update of /cvs/dbus/dbus/doc
In directory pdx:/tmp/cvs-serv12335/doc

Modified Files:
	Makefile.am 
Log Message:
2003-09-28  Havoc Pennington  <hp@pobox.com>

	* doc/Makefile.am (dbus-specification.html): testing a funky hack
	to work with Debian db2html



Index: Makefile.am
===================================================================
RCS file: /cvs/dbus/dbus/doc/Makefile.am,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Makefile.am	29 Sep 2003 01:43:52 -0000	1.10
+++ Makefile.am	29 Sep 2003 02:23:29 -0000	1.11
@@ -10,14 +10,19 @@
 all-local: dbus-specification.html dbus-test-plan.html
 endif
 
+## Debian db2html outputs to stdout, so we collect stdout and use 
+## it if we didn't get the proper output
+
 dbus-specification.html: dbus-specification.sgml
-	$(DB2HTML) -o . --nochunks $< &&				\
+	$(DB2HTML) -o . --nochunks $< > $@.stdout &&			\
+	(test -e $@ && rm -f $@.stdout || mv $@.stdout $@) &&		\
 	rm -rf $(srcdir)/dbus-specification/stylesheet-images &&	\
 	(if test -d $(srcdir)/dbus-specification ; then			\
 	rmdir $(srcdir)/dbus-specification ; fi)
 
 dbus-test-plan.html: dbus-test-plan.sgml
-	$(DB2HTML) -o . --nochunks $< &&			\
+	$(DB2HTML) -o . --nochunks $< > $@.stdout &&		\
+	(test -e $@ && rm -f $@.stdout || mv $@.stdout $@) &&	\
 	rm -rf $(srcdir)/dbus-test-plan/stylesheet-images &&	\
 	(if test -d $(srcdir)/dbus-test-plan ; then		\
 	rmdir $(srcdir)/dbus-test-plan ; fi)