From 64724757142476b5b60c0f26d0f8448c19b81f98 Mon Sep 17 00:00:00 2001 From: Dustin Dettmer Date: Tue, 11 Apr 2023 16:43:06 -0400 Subject: [PATCH] Mac: Update Makefile to work on Mac zsh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using the -n flag on echo is non-standard for zsh. printf ā€˜%sā€™ accomplishes the equivilent thing. Changelog-Added: Small fix for Mac OS building # Conflicts: # plugins/Makefile --- contrib/pyln-spec/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-spec/Makefile b/contrib/pyln-spec/Makefile index 14ad23aa7..e497bb580 100755 --- a/contrib/pyln-spec/Makefile +++ b/contrib/pyln-spec/Makefile @@ -100,5 +100,5 @@ $(CODE_DIRS:%=%/csv.py): $(CODE_DIRS:%=%/text.py): @echo 'desc = "'`head -n1 $< | cut -c3-`'"' > $@.tmp - @(echo -n 'text = """'; sed 's,\\,\\\\,g' < $<; echo '"""') >> $@.tmp + @(printf '%s' 'text = """'; sed 's,\\,\\\\,g' < $<; echo '"""') >> $@.tmp @if cmp $@ $@.tmp >/dev/null 2>&1; then rm $@.tmp; echo '$@ unchanged'; else mv $@.tmp $@; fi