mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
Mac: Update Makefile to work on Mac zsh
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
This commit is contained in:
parent
6a734d8b4d
commit
6472475714
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue