summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2023-03-13 22:01:08 +0100
committerVivien Kraus <vivien@planete-kraus.eu>2023-03-14 07:04:57 +0100
commit6b24e097f5e1a761db978f2ca090dbd839547e78 (patch)
treef914f21abf5c32552a906de1847f00fdcc0b37a0 /cfg.mk
parentf92e3595144ca359dca8da9b9a6a6e9e587fb5d5 (diff)
Start the disfluid manual.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index bc2c511..8611d1a 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1,9 +1,11 @@
old_NEWS_hash = f0fb7934a30c4e89f0468433bd9317c7
-_makefile_at_at_check_exceptions = ' && !/INTL_MACOSX_LIBS/ && !/GSETTINGS_RULES/'
+_makefile_at_at_check_exceptions = ' && !/INTL_MACOSX_LIBS/ && !/GSETTINGS_RULES/ && !/AM_V/ && !/AM_DEFAULT_V/'
generated_files = $(srcdir)/lib/*.[ch] $(srcdir)/desktop/*.desktop.in
_gl_translatable_string_re ?= \b(N?_|gettext) *\([^)"]*("|$$)|translatable="yes"|^Comment=|<description>
+VC_LIST_ALWAYS_EXCLUDE_REGEX ?= ^doc/.*\.png$$
+
.PHONY: push-updated-translations sc_git_authors_known sc_appstream_news_hash
push-updated-translations:
@@ -30,3 +32,11 @@ sc_appstream_news_hash:
@$(GREP) "$(NEWS_hash)" $(srcdir)/src/libdisfluid/disfluid-version.h >/dev/null 2>&1 \
|| (echo "The appstream news in src/libdisfluid/disfluid-version.h should be updated to reflect the changes in NEWS. Once this is done, write the NEWS hash in the file: $(NEWS_hash)" ; \
exit 1)
+
+find_mdate = $(GIT) log -1 --pretty=format:%ai doc/disfluid.texi
+find_mdate_full = LANG=en_US.UTF-8 date -u --date="$$($(find_mdate))" '+%d %B %Y'
+find_mdate_month = LANG=en_US.UTF-8 date -u --date="$$($(find_mdate))" '+%B %Y'
+
+sc_manual_update_date:
+ @if UPDATED=$$($(find_mdate_full)) ; then $(GREP) "^@set UPDATED $${UPDATED}\$$" doc/disfluid.texi > /dev/null 2>&1 || (echo "The manual was last updated $$UPDATED, please change the UPDATED variable definition." ; exit 1) ; fi
+ @if UPDATED_MONTH=$$($(find_mdate_month)) ; then $(GREP) "^@set UPDATED-MONTH $${UPDATED_MONTH}\$$" doc/disfluid.texi > /dev/null 2>&1 || (echo "The manual was last updated $$UPDATED_MONTH, please change the UPDATED-MONTH variable definition." ; exit 1) ; fi