--- origsrc/babl-0.1.74/docs/meson.build 2020-01-12 18:26:51.000000000 -0500 +++ src/babl-0.1.74/docs/meson.build 2020-05-24 22:10:24.081359400 -0400 @@ -54,22 +54,26 @@ index_html = custom_target('index.html', build_by_default: true, ) -Reference_html = custom_target('Reference.html', +Reference_html_tmp = custom_target('Reference.html.tmp', input : [ 'Reference-static.html', 'toc', - index_html_tmp, ], - output: [ 'Reference.html', ], + output: [ 'Reference.html.tmp', ], command: [ env_bin, 'cp', '@INPUT0@', '@OUTPUT@', '&&', xml_insert, '@OUTPUT@', 'TOC', '@INPUT1@', - '&&', xml_insert, '@OUTPUT@', 'BablBase', '@INPUT2@', ], - build_by_default: true, ) +Reference_html = custom_target('Reference.html', + input : [ Reference_html_tmp, index_html_tmp, ], + output: [ 'Reference.html', ], + command: [ xml_insert, '@INPUT0@', 'BablBase', '@INPUT1@', 'cat_result' ], + build_by_default: true, + capture: true, +) CMYK_html = custom_target('CMYK.html', input : [ --- origsrc/babl-0.1.74/docs/tools/xml_insert.sh 2020-01-12 18:26:51.000000000 -0500 +++ src/babl-0.1.74/docs/tools/xml_insert.sh 2020-05-25 07:54:31.875472500 -0400 @@ -7,6 +7,9 @@ # # xml_insert.sh bar.xml foo foo.inc # +# If there's a fourth argument, cat the final result. +# +# # 2005 © Øyvind Kolås # # FIXME: add argument checking / error handling @@ -97,6 +100,9 @@ tailno=`expr $numlines - $splitno` head -$splitno $tmp_file > $1 cat $3 >> $1 tail -$tailno $tmp_file >> $1 +if test -n "$4"; then + cat $1 +fi rm -rf $tmp_dir