Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1089)

Unified Diff: third_party/libvpx/lint_config.sh

Issue 2767143004: libvpx: use bsd-compatible sed expressions (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libvpx/generate_gni.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libvpx/lint_config.sh
diff --git a/third_party/libvpx/lint_config.sh b/third_party/libvpx/lint_config.sh
index 1a6c96dfbb94f63973272f3367827374e20e05aa..a4fd382333d01a3165f4c7ee1969fdc221b55401 100755
--- a/third_party/libvpx/lint_config.sh
+++ b/third_party/libvpx/lint_config.sh
@@ -56,7 +56,7 @@ combined_config="$(echo "$combined_config" | grep -v ARCHITECTURE)"
combined_config="$(echo "$combined_config" | grep -v DO1STROUNDING)"
# Remove all spaces.
-combined_config="$(echo "$combined_config" | sed 's/[ \t]//g')"
+combined_config="$(echo "$combined_config" | sed 's/[[:space:]]//g')"
# Remove #define in the header file.
combined_config="$(echo "$combined_config" | sed 's/.*define//')"
@@ -67,7 +67,7 @@ combined_config="$(echo "$combined_config" | sed 's/equ//')" # rvds style
combined_config="$(echo "$combined_config" | sed 's/\.set//')" # apple style
# Remove %define in YASM ASM files.
-combined_config="$(echo "$combined_config" | sed 's/%define\s *//')" # yasm style
+combined_config="$(echo "$combined_config" | sed 's/%define[[:space:]]*//')"
# Remove useless comma in gas style assembly file.
combined_config="$(echo "$combined_config" | sed 's/,//')"
« no previous file with comments | « third_party/libvpx/generate_gni.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698