ref: 1a0047994f34dde83fb45349618de0f34827c8d6
parent: d7b140487829ec81bd55774d22be6c8eba9073c0
author: Johann <johannkoenig@google.com>
date: Fri May 18 07:32:59 EDT 2018
iosbuild.sh: portable sed usage There is no convenient way to have both gnu and bsd sed do in-place processing. Change-Id: I95f2a378d5c1bd95debb446317cc18ad79835e49
--- a/build/make/iosbuild.sh
+++ b/build/make/iosbuild.sh
@@ -132,7 +132,8 @@
done
# Consume the last line of output from the loop: We don't want it.
- sed -i '' -e '$d' "${config_file}"
+ sed -i.bak -e '$d' "${config_file}"
+ rm "${config_file}.bak"
printf "#endif\n\n" >> "${config_file}"
printf "#endif // ${include_guard}" >> "${config_file}"