From deeb4ff26231d0a93c23b32a17f159e413d9de3e Mon Sep 17 00:00:00 2001 From: Fabian Egli Date: Fri, 1 Feb 2019 01:27:54 +0100 Subject: [PATCH] Fixed Makefile.gen for "de" on Mac Correcting function definition and function call for OS X. --- Makefile.gen | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.gen b/Makefile.gen index f228a14b..644f983e 100644 --- a/Makefile.gen +++ b/Makefile.gen @@ -43,7 +43,7 @@ all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f)) ## Function to make this work with Gnu and BSD sed define sedi - sed --version >/dev/null 2>&1 && sed -i -- "$@" || sed -i "" "$@" + sed --version >/dev/null 2>&1 && sed -i || sed -i "" endef @@ -78,8 +78,8 @@ es/%.html: esd-es.po $(foreach f,$(SRC),en/$f) # de - German de/%.html: esd-de.po $(foreach f,$(SRC),en/$f) - po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@ - $(sedi '{s|img/en/|img/de/|g;}' $@) + -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@ + $(sedi) '{s|img/en/|img/de/|g;}' $@ # fa - Persian fa/%.html: esd-fa.po $(foreach f,$(SRC),en/$f) -- 2.25.1