From 8e231398c510c6c8273a05c61ba535e5ac133aa5 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 20 Jan 2018 16:02:13 -0800 Subject: [PATCH] Makefile.mak: sed from stdin to stdout When processing scripts pass them to sed via stdin rather than using the actual file name. On some platforms this can prevent unwanted eol mangling while not being any more expensive on the ones that don't need it. Signed-off-by: Kyle J. McKay --- Makefile.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.mak b/Makefile.mak index 4dcf10c..c1edc07 100644 --- a/Makefile.mak +++ b/Makefile.mak @@ -88,7 +88,7 @@ tg $(commands_out) $(utils_out) $(hooks_out) $(helpers_out): Makefile Makefile.m -e 's#@SHELL_PATH@#$(SHELL_PATH_SQ)#g' \ -e 's#@AWK_PATH@#$(AWK_PATH_SQ)#g' \ $(version_arg) \ - "$@.sh" >"$@+" && \ + <"$@.sh" >"$@+" && \ chmod +x "$@+" && \ mv "$@+" "$@" @@ -96,7 +96,7 @@ tg--awksome: $(awk_out) $(awk_out): Makefile TG-BUILD-SETTINGS $(QSED)sed \ -e '1s|#!.*/awk|#!$(AWK_PREFIX)$(AWK_PATH_SQ)|' \ - "$@.awk" >"$@+" && \ + <"$@.awk" >"$@+" && \ chmod +x "$@+" && \ mv "$@+" "$@" -- 2.11.4.GIT