summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 17:23:25 +0000
committerscottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 17:23:25 +0000
commite064e3004f682442dedac5697701aadadfa390ea (patch)
tree0c39d0f4416d81808519051d05e4618b87ca54af
parent0f1afed8d9f9f1849006fc6d93305d14986d16b6 (diff)
downloadchromium_src-e064e3004f682442dedac5697701aadadfa390ea.zip
chromium_src-e064e3004f682442dedac5697701aadadfa390ea.tar.gz
chromium_src-e064e3004f682442dedac5697701aadadfa390ea.tar.bz2
Make script cross-platform.
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
-rw-r--r--[-rwxr-xr-x]build/sanitize-mac-build-log.sed2
-rwxr-xr-xbuild/sanitize-mac-build-log.sh6
-rw-r--r--tools/emacs/trybot.el2
3 files changed, 8 insertions, 2 deletions
diff --git a/build/sanitize-mac-build-log.sed b/build/sanitize-mac-build-log.sed
index 3894e4c..274e282 100755..100644
--- a/build/sanitize-mac-build-log.sed
+++ b/build/sanitize-mac-build-log.sed
@@ -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
diff --git a/build/sanitize-mac-build-log.sh b/build/sanitize-mac-build-log.sh
new file mode 100755
index 0000000..dc743fa
--- /dev/null
+++ b/build/sanitize-mac-build-log.sh
@@ -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
+
diff --git a/tools/emacs/trybot.el b/tools/emacs/trybot.el
index 6bc966f..0352ed5 100644
--- a/tools/emacs/trybot.el
+++ b/tools/emacs/trybot.el
@@ -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)