diff options
author | David Tardon <dtardon@redhat.com> | 2013-04-23 14:30:13 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-04-24 13:06:46 +0000 |
commit | ad5c0602ec288290bdfc30cee9f56712101be5a4 (patch) | |
tree | 9088fe5227ec922879a8fbabc0fc5a1b869a9321 /odk/CustomTarget_check.mk | |
parent | 0ea6217986e69612faf314611bf2e8349d78705c (diff) |
add test for missing module-ix.html
Change-Id: Ibdbe04028ad9648af011da51b562cc6aa5e4849b
Reviewed-on: https://gerrit.libreoffice.org/3578
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'odk/CustomTarget_check.mk')
-rw-r--r-- | odk/CustomTarget_check.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/odk/CustomTarget_check.mk b/odk/CustomTarget_check.mk index 16e50ec4cc1a..3f06bd43fab9 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: |