From 09e860d5a1e30901327aadb6bdfa0ee6afb00277 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 14 Nov 2023 03:05:48 +0100 Subject: Make use of ‘ifne’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/lib.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 { -- cgit v1.2.3