Bug 1372393 - opus: Fix update script. r=kinetik draft
authorRalph Giles <giles@mozilla.com>
Tue, 13 Jun 2017 14:15:17 -0700
changeset 594878 47ab394a7b17171d130fc5990c119df5eba12dc9
parent 594852 ac2d0008d149be9bd183dd1fb3a127997bf3f14e
child 594879 9a581ef7160dfd297eca08ddd1cb1dc744527f18
push id64188
push userbmo:giles@thaumas.net
push dateThu, 15 Jun 2017 17:37:30 +0000
reviewerskinetik
bugs1372393
milestone56.0a1
Bug 1372393 - opus: Fix update script. r=kinetik Handle numbers for SIMD extension versions and variant spacing in the source file listings. MozReview-Commit-ID: pbYwDyk2cL
media/libopus/update.sh
--- a/media/libopus/update.sh
+++ b/media/libopus/update.sh
@@ -19,17 +19,17 @@ MK_FILES="opus_sources.mk celt_sources.m
 if test -z $1 || ! test -r $1/include/opus.h; then
   echo "Update the current directory from a source checkout"
   echo "usage: $0 ../opus"
   exit 1
 fi
 
 # "parse" the makefile fragments to get the list of source files
 # requires GNU sed extensions
-SRC_FILES=$(sed -e ':a;N;$!ba;s/#[^\n]*\(\n\)/\1/g;s/\\\n//g;s/[A-Z_]* = //g' \
+SRC_FILES=$(sed -e ':a;N;$!ba;s/#[^\n]*\(\n\)/\1/g;s/\\\n//g;s/[A-Z0-9_]*[ \t]*=[ \t]*//g' \
              $(for file in ${MK_FILES}; do echo "$1/${file}"; done))
 
 # pre-release versions of the code don't list opus_custom.h
 # in celt_headers.mk, so we must include it manually
 HDR_FILES="include/opus_custom.h"
 
 # make sure the necessary subdirectories exist
 for file in ${SRC_FILES}; do