From: Richard Levitte Date: Mon, 31 Oct 2016 16:38:36 +0000 (+0100) Subject: Unix Makefile: Some sed implementation truncate long lines. Use perl instead. X-Git-Tag: OpenSSL_1_1_0c~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=936503cb0bc9c3bc08a070e0fc43bb112b1e9d02;p=openssl Unix Makefile: Some sed implementation truncate long lines. Use perl instead. Fixes #1781 Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1813) (cherry picked from commit ebca7961a6bc2652ecb3cf6dda3f43943e2965d3) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index a11d7c147d..87f834341b 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -297,7 +297,7 @@ distclean: clean depend: @: {- output_off() if $disabled{makedepend}; "" -} @if egrep "^# DO NOT DELETE THIS LINE" Makefile >/dev/null && [ -z "`find $(DEPS) -newer Makefile 2>/dev/null; exit 0`" ]; then :; else \ - ( sed -e '/^# DO NOT DELETE THIS LINE.*/,$$d' < Makefile; \ + ( $(PERL) -pe 'exit 0 if /^# DO NOT DELETE THIS LINE.*/' < Makefile; \ echo '# DO NOT DELETE THIS LINE -- make depend depends on it.'; \ echo; \ for f in $(DEPS); do \