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

Christian Ebert blacktrash
Sun Jan 30 14:43:57 CET 2011


* M?ns Rullg?rd on Sunday, January 30, 2011 at 13:31:28 +0000
> Christian Ebert <blacktrash at gmx.net> writes:
> 
>> ---
>> 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
> 
> Which versions of texi2html is this intended for?  1.76 and 1.78
> accept both flag styles.  Do newer versions (5.0) only accept the
> double-dash style?  Otherwise we could simply use the old style.  If
> new versions do require the new style, the patch is rejected.  We will
> only go so far in supporting software so old it isn't even in Debian
> stable anymore.

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.5.8
BuildVersion:	9L30
$ /usr/bin/texi2html --version
1.70

1.70 (Apple shipped with Leopard) supports both --init-file and
-init_file. I have an even older 1.64 which only supports
-init_file.

c
-- 
  Was hei?t hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]
free movies       --->>> http://www.blacktrash.org/underdogma
http://itunes.apple.com/podcast/underdogma-movies/id363423596



More information about the ffmpeg-devel mailing list