Commit 1a5fc95a authored by Scott Anderson's avatar Scott Anderson
Browse files

Rename help function in envsetup.sh to be hmm


Bash has a built-in command "help" that is useful for getting
help on bash commands without wading through the bash man page
(e.g. "help test" will give you the syntax for those "if [ ]"
expressions).  Overwriting a built-in with a convenience function
is not good.

The function "hmm" was added recently that serves much the same
purpose as help.  It seems like a good idea to remove the new
"hmm" command and rename "help" to be "hmm" so we no longer
overwrite the built-in.

Change-Id: I2079b3e6a10715956ec077d31e817a939c6ee4a0
Signed-off-by: default avatarScott Anderson <saa@android.com>
parent 15761598
function help() {
function hmm() {
cat <<EOF
Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- croot: Changes directory to the top of the tree.
......@@ -658,17 +658,6 @@ function mmm()
fi
}
function hmm()
{
cat <<EOF
- m: Makes from the top of the tree.
- mm: Builds all of the modules in the current directory.
- mmm dir: Same as 'cd dir; mm'
Type 'help' for more commands.
EOF
}
function croot()
{
T=$(gettop)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment