From 4d7eb477ac52a600a95628e40da752acddee04be Mon Sep 17 00:00:00 2001 From: Paul Shapiro Date: Wed, 15 Aug 2018 14:11:41 -0400 Subject: [PATCH] build-openssl-emscripten.sh: fixed -i suffix --- bin/build-openssl-emscripten.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/build-openssl-emscripten.sh b/bin/build-openssl-emscripten.sh index 1f1cba4..aca9f61 100755 --- a/bin/build-openssl-emscripten.sh +++ b/bin/build-openssl-emscripten.sh @@ -33,11 +33,11 @@ fi # now must manually tweak the Makefile as I'm not sure how to do this via ./Configure to_cross_compile_line='CROSS_COMPILE=' -sed -iMakefile.bak 's/^CROSS_COMPILE=\/.*$/'"$to_cross_compile_line"'/' Makefile #must match whole line with start char or we might do it repeatedly .. though this particular one would be idempotent anyway +sed -i.bak 's/^CROSS_COMPILE=\/.*$/'"$to_cross_compile_line"'/' Makefile #must match whole line with start char or we might do it repeatedly .. though this particular one would be idempotent anyway # ^-- not 'g' b/c we only expect one to_defined_atomics_line='\&\& !defined(__STDC_NO_ATOMICS__) \&\& !defined(__EMSCRIPTEN__)' -sed -irefcount_h.bak 's/\&\&\ !defined(__STDC_NO_ATOMICS__)$/'"$to_defined_atomics_line"'/' include/internal/refcount.h #the pattern is relying here on the fact the "ATOMICS__)" comes at the end of the line +sed -i.bak 's/\&\&\ !defined(__STDC_NO_ATOMICS__)$/'"$to_defined_atomics_line"'/' include/internal/refcount.h #the pattern is relying here on the fact the "ATOMICS__)" comes at the end of the line # ^-- not 'g' b/c we only expect one