odk/CustomTarget_check.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
New commits: commit ad5c0602ec288290bdfc30cee9f56712101be5a4 Author: David Tardon <dtar...@redhat.com> Date: Tue Apr 23 14:30:13 2013 +0200 add test for missing module-ix.html Change-Id: Ibdbe04028ad9648af011da51b562cc6aa5e4849b Reviewed-on: https://gerrit.libreoffice.org/3578 Tested-by: LibreOffice gerrit bot <ger...@libreoffice.org> Reviewed-by: David Tardon <dtar...@redhat.com> Tested-by: David Tardon <dtar...@redhat.com> diff --git a/odk/CustomTarget_check.mk b/odk/CustomTarget_check.mk index 16e50ec..3f06bd4 100644 --- a/odk/CustomTarget_check.mk +++ b/odk/CustomTarget_check.mk @@ -10,6 +10,7 @@ $(eval $(call gb_CustomTarget_CustomTarget,odk/check)) $(eval $(call gb_CustomTarget_register_targets,odk/check,\ + autodoc \ checkbin \ )) @@ -54,4 +55,20 @@ $(call gb_CustomTarget_get_workdir,odk/check)/checkbin : \ ,$@.log \ ) +.PHONY : $(call gb_CustomTarget_get_workdir,odk/check)/autodoc +$(call gb_CustomTarget_get_workdir,odk/check)/autodoc : $(call gb_PackageSet_get_target,odk_autodoc) + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1) + ( \ + c=0 && \ + for m in `find $(call gb_CustomTarget_get_workdir,odk/docs/common/ref) -name module-ix.html`; do \ + m=`echo $$m | sed -e s@$(call gb_CustomTarget_get_workdir,odk/docs/common/ref)/@@` && \ + mm=$(INSTDIR)/$(gb_Package_SDKDIRNAME)/docs/common/ref/$${m} && \ + if [ ! -e $${mm} ]; then \ + c=`expr $$c + 1`; \ + echo "autodoc check: $${mm} not found. Please update odk/Package_autodoc.mk ."; \ + fi \ + done && \ + if [ $${c} -gt 0 ]; then exit 1; fi \ + ) + # vim: set noet sw=4 ts=4: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits