diff options
author | pdr@chromium.org <pdr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-24 11:05:12 +0000 |
---|---|---|
committer | pdr@chromium.org <pdr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-24 11:05:12 +0000 |
commit | 0a62104c0b55ea0402b154358e3ffbdcfbadf093 (patch) | |
tree | 926b5deec5c5ccf5bd8386334dff394d12fc2f9c /build/android/adb_profile_chrome | |
parent | 0c6fa666132c2990565b83ac5b91774ff0d3d507 (diff) | |
download | chromium_src-0a62104c0b55ea0402b154358e3ffbdcfbadf093.zip chromium_src-0a62104c0b55ea0402b154358e3ffbdcfbadf093.tar.gz chromium_src-0a62104c0b55ea0402b154358e3ffbdcfbadf093.tar.bz2 |
Make adb_profile_chrome work on OSX
adb_profile_chrome relies on regular expression matching to pull the
correct trace file from the device. Unfortunatey, OSX ships with
a version of sed from 2005 which doesn't support matching of newline
characters (see
http://www.culmination.org/2008/02/sed-on-mac-os-x-105-leopard/). This
patch switches to perl, making adb_profile_chrome work on OSX.
BUG=
Review URL: https://chromiumcodereview.appspot.com/20022002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213404 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/adb_profile_chrome')
-rwxr-xr-x | build/android/adb_profile_chrome | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/android/adb_profile_chrome b/build/android/adb_profile_chrome index 09d7bda..c4445d1 100755 --- a/build/android/adb_profile_chrome +++ b/build/android/adb_profile_chrome @@ -44,7 +44,7 @@ download_latest_trace() { TRACE_FILE=$(adb logcat -d | \ grep "Logging performance trace to file: " | \ tail -1 | \ - sed -E "s/.*\/storage\/emulated\/.+\/([^\r]+).*/\/sdcard\/Download\/\\1/") + perl -pi -e "s/.*\/storage\/emulated\/.+\/([^\r]+).*/\/sdcard\/Download\/\\1/g") if [ -z "$TRACE_FILE" ]; then echo "Unable to determine trace file name" exit 1 |