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

Issue 5746007: Make script cross-platform. (Closed)

Created:
10 years ago by Scott Byer
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Make script cross-platform. BUG=none TEST=try script on both Mac and Linux on Mac build output. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69274

Patch Set 1 #

Patch Set 2 : Split out the shell wrapper. #

Total comments: 2

Patch Set 3 : Get up-to-date on my shell idioms. #

Patch Set 4 : Fix presubmit check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M build/sanitize-mac-build-log.sed View 1 1 chunk +1 line, -1 line 0 comments Download
A build/sanitize-mac-build-log.sh View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M tools/emacs/trybot.el View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Scott Byer
The typical portability trick doesn't work when the executable needs an argument, as is the ...
10 years ago (2010-12-14 00:30:09 UTC) #1
evanm
On 2010/12/14 00:30:09, Scott Byer wrote: > The typical portability trick doesn't work when the ...
10 years ago (2010-12-14 00:33:57 UTC) #2
Scott Byer
On Linux, everything after the first argument gets passed as a single word to that ...
10 years ago (2010-12-14 00:49:41 UTC) #3
Evan Martin
On 2010/12/14 00:49:41, Scott Byer wrote: > On Linux, everything after the first argument gets ...
10 years ago (2010-12-14 00:54:21 UTC) #4
Scott Byer
Can't work; stdin is where the thing to be edited is coming from, so can't ...
10 years ago (2010-12-14 01:01:28 UTC) #5
evanm
On 2010/12/14 01:01:28, Scott Byer wrote: > If you're squeemish about leaving the temp file ...
10 years ago (2010-12-14 01:04:07 UTC) #6
scottbyer
Mmm. Python's probably the right answer, though the here document should work fine for Cygwin ...
10 years ago (2010-12-14 01:14:24 UTC) #7
Scott Byer
I thought about it a bunch more and sed really is the right tool here. ...
10 years ago (2010-12-14 21:55:28 UTC) #8
Evan Martin
http://codereview.chromium.org/5746007/diff/9001/build/sanitize-mac-build-log.sh File build/sanitize-mac-build-log.sh (right): http://codereview.chromium.org/5746007/diff/9001/build/sanitize-mac-build-log.sh#newcode4 build/sanitize-mac-build-log.sh:4: sed -f ${dir}/${root%\.*}.sed I think elsewhere we just use ...
10 years ago (2010-12-14 22:01:53 UTC) #9
Scott Byer
http://codereview.chromium.org/5746007/diff/9001/build/sanitize-mac-build-log.sh File build/sanitize-mac-build-log.sh (right): http://codereview.chromium.org/5746007/diff/9001/build/sanitize-mac-build-log.sh#newcode4 build/sanitize-mac-build-log.sh:4: sed -f ${dir}/${root%\.*}.sed I think that my shell-fu needs ...
10 years ago (2010-12-14 22:17:25 UTC) #10
Evan Martin
10 years ago (2010-12-14 22:18:17 UTC) #11
LGTM, sorry for the long review

Powered by Google App Engine
This is Rietveld 408576698