[FFmpeg-devel] [PATCH] documentation: cater for older texi2html versions

Christian Ebert blacktrash
Sun Jan 30 13:55:58 CET 2011


---
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 2658a30..573dff3 100644
--- a/Makefile
+++ b/Makefile
@@ -124,7 +124,9 @@ doc/libavfilter.html: doc/filters.texi
 
 doc/%.html: TAG = HTML
 doc/%.html: doc/%.texi $(SRC_PATH_BARE)/doc/t2h.init
-	$(M)cd doc && texi2html -monolithic --init-file $(SRC_PATH_BARE)/doc/t2h.init $(<:doc/%=%)
+	$(M)cd doc && ( \
+	texi2html -monolithic --init-file $(SRC_PATH_BARE)/doc/t2h.init $(<:doc/%=%) 2>/dev/null \
+	|| texi2html -monolithic -init_file $(SRC_PATH_BARE)/doc/t2h.init $(<:doc/%=%) )
 
 doc/%.pod: TAG = POD
 doc/%.pod: doc/%.texi
-- 
1.7.3.5




More information about the ffmpeg-devel mailing list