summaryrefslogtreecommitdiffstats
path: root/tools/emacs/trybot.el
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-03 21:36:45 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-03 21:36:45 +0000
commit49caa4c8ca2a69b7fad8d49708168458cfa57018 (patch)
tree63982af231160b501cca1b901a5fb90605b858d9 /tools/emacs/trybot.el
parent3eb8a7049a1678c35845c10e95ecc4bf303b59e2 (diff)
downloadchromium_src-49caa4c8ca2a69b7fad8d49708168458cfa57018.zip
chromium_src-49caa4c8ca2a69b7fad8d49708168458cfa57018.tar.gz
chromium_src-49caa4c8ca2a69b7fad8d49708168458cfa57018.tar.bz2
emacs: fix up mac trybot output
M-x mac-trybot-test seems to work for me with this change. Review URL: http://codereview.chromium.org/5518003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/emacs/trybot.el')
-rw-r--r--tools/emacs/trybot.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/emacs/trybot.el b/tools/emacs/trybot.el
index b448799..78d339a 100644
--- a/tools/emacs/trybot.el
+++ b/tools/emacs/trybot.el
@@ -54,7 +54,6 @@
; undo stack?
(goto-char (point-min))
; Fix Windows paths ("d:\...\src\").
- ; TODO: need to fix case; e.g. third_party/webkit -> third_party/WebKit. :(
(while (re-search-forward "\\(^.:\\\\.*\\\\src\\\\\\)\\(.*?\\)[(:]" nil t)
(replace-match "" nil t nil 1)
; Line now looks like:
@@ -69,9 +68,14 @@
(if (and (not (file-exists-p filename))
(setq filename (case-corrected-filename filename)))
(replace-match filename t t nil 2))))
+
+ ; Fix Linux/Mac paths ("/b/build/.../src/").
(goto-char (point-min))
+ (while (re-search-forward "^/b/build/[^ ]*/src/" nil t)
+ (replace-match ""))
- ;; Switch into compilation mode.
+ ;; Clean up and switch into compilation mode.
+ (goto-char (point-min))
(compilation-mode))
(defun trybot-test (filename)