From 35920b11c9dfdc001eea7d3b2582c58aa3aa381b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 25 Jul 2024 18:25:35 +0200 Subject: Fix mintmark display for German extras table --- lib.m4 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib.m4') diff --git a/lib.m4 b/lib.m4 index d15a05d..02ae9ef 100644 --- a/lib.m4 +++ b/lib.m4 @@ -4,14 +4,12 @@ m4_changequote([,]) m4_dnl Output ‘$2’ if the country code matches ‘$1’ m4_define(__ifcode, [m4_ifelse(__code, [$1], [$2])]) +m4_dnl Output ‘$1’ if the country with code ‘__code’ has extra coins m4_define(__ifextra, [ m4_syscmd(grep -iq '^__code' data/extras) m4_ifelse(m4_sysval, 0, [$1]) ]) -m4_dnl Expand ‘$3’ if ‘$1’ is a substring of ‘$2’ -m4_define(__ifhas, [m4_ifelse(m4_index([$2], [$1]), -1, [], [$3])]) - m4_dnl Execute the script ‘$1’ in the ‘scripts/’ directory m4_define(__esyscmd, [m4_esyscmd([scripts/$1])]) -- cgit v1.2.3