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

Unified Diff: trunk/src/tools/cr/cr.sh

Issue 67763006: Revert 235983 "Adding the main function and remaining pieces." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/tools/cr/cr/auto/user/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/tools/cr/cr.sh
===================================================================
--- trunk/src/tools/cr/cr.sh (revision 235987)
+++ trunk/src/tools/cr/cr.sh (working copy)
@@ -1,38 +0,0 @@
-# Copyright 2013 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.
-
-# Source this file into your shell to gain the cr function and tab completion
-# for it
-
-cr_base_dir=$(dirname $(realpath "${BASH_SOURCE:-$0}"))
-cr_main="${cr_base_dir}/main.py"
-cr_exec="PYTHONDONTWRITEBYTECODE=1 python ${cr_main}"
-
-# The main entry point to the cr tool.
-# Invokes the python script with pyc files turned off.
-function cr() {
- env $cr_exec "$@"
-}
-
-# Attempts to cd to the root/src of the current client.
-function crcd() {
- cd $(cr info -s CR_SRC)
-}
-
-# Add to your PS1 to have the current selected output directory in your prompt
-function _cr_ps1() {
- cr info -s CR_OUT_FULL
-}
-
-# The tab completion handler, delegates into the python script.
-function _cr_complete() {
- COMPREPLY=()
- local cur="${COMP_WORDS[COMP_CWORD]}"
- local main="python -B "${cr_main}")"
- local completions="$(env COMP_CWORD=${COMP_CWORD} COMP_WORD=${cur} $cr_exec)"
- COMPREPLY=( $(compgen -W "${completions}" -- ${cur}) )
-}
-
-# Setup the bash auto complete
-complete -F _cr_complete cr
« no previous file with comments | « no previous file | trunk/src/tools/cr/cr/auto/user/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698