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
--- 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