summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-14 03:05:48 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-14 03:05:48 +0100
commit09e860d5a1e30901327aadb6bdfa0ee6afb00277 (patch)
treecd2e87b9920c9d24f136e5e4f680e763eaa6a8ed /include
parentb08105bfe7a5aa1e8467dae84601a585f490318a (diff)
Make use of ‘ifne’
Diffstat (limited to 'include')
-rw-r--r--include/lib.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lib.m4 b/include/lib.m4
index 24a911f..345e670 100644
--- a/include/lib.m4
+++ b/include/lib.m4
@@ -24,7 +24,8 @@ m4_define(m4_abbr, ⁨@abbr .m4_translit($1, A-Z2, a-zt) {-$1}⁩)
m4_define(m4_file_create_date, ⁨m4_esyscmd(
git log --reverse --pretty='format:%cI' $(dirname m4___file__)/$1/index.gsp \
| head -n1 \
- | xargs date +'%-d %B %Y' -d
+ | ifne xargs date +'%-d %B %Y' -d \
+ | ifne -n echo 'No date yet…'
)⁩)
m4_define(m4_article, ⁨li .article {