Skip to content

Commit

Permalink
Make script cross-platform.
Browse files Browse the repository at this point in the history
BUG=none
TEST=try script on both Mac and Linux on Mac build output.

Review URL: http://codereview.chromium.org/5746007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69274 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
scottbyer@chromium.org committed Dec 15, 2010
1 parent 0f1afed commit e064e30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/sanitize-mac-build-log.sed
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sed -f
#!/bin/echo Use sanitize-mac-build-log.sh or sed -f

# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
Expand Down
6 changes: 6 additions & 0 deletions build/sanitize-mac-build-log.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
sed -f `dirname "${0}"`/`basename "${0}" sh`sed

2 changes: 1 addition & 1 deletion tools/emacs/trybot.el
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
(when (eq type-hint 'mac)
; Pipe it through the output shortener.
(concat " | " (get-chrome-root)
"build/sanitize-mac-build-log.sed")))))
"build/sanitize-mac-build-log.sh")))))

; Start up the subprocess.
(let* ((coding-system-for-read 'utf-8-dos)
Expand Down

0 comments on commit e064e30

Please sign in to comment.