]> granicus.if.org Git - libvpx/commitdiff
iosbuild.sh: portable sed usage
authorJohann <johannkoenig@google.com>
Fri, 18 May 2018 18:32:59 +0000 (11:32 -0700)
committerJohann <johannkoenig@google.com>
Fri, 18 May 2018 18:32:59 +0000 (11:32 -0700)
There is no convenient way to have both gnu and bsd
sed do in-place processing.

Change-Id: I95f2a378d5c1bd95debb446317cc18ad79835e49

build/make/iosbuild.sh

index 365a8c013068a645edb5338776cd2188e7dbfbcc..e102442bd8eb6797977291385561cc902fce95fe 100755 (executable)
@@ -132,7 +132,8 @@ create_vpx_framework_config_shim() {
   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}"