Loading envsetup.sh 100644 → 100755 +24 −0 Original line number Original line Diff line number Diff line Loading @@ -6,8 +6,12 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y - mm: Builds all of the modules in the current directory. - mm: Builds all of the modules in the current directory. - mmm: Builds all of the modules in the supplied directories. - mmm: Builds all of the modules in the supplied directories. - cgrep: Greps on all local C/C++ files. - cgrep: Greps on all local C/C++ files. - hgrep: Greps on all local C/C++ header files. - jgrep: Greps on all local Java files. - jgrep: Greps on all local Java files. - mkgrep: Greps on all local make files. - rcgrep: Greps on all local .rc files. - resgrep: Greps on all local res/*.xml files. - resgrep: Greps on all local res/*.xml files. - shgrep: Greps on all local .sh files. - godir: Go to the directory containing a file. - godir: Go to the directory containing a file. Look at the source to view more functions. The complete list is: Look at the source to view more functions. The complete list is: Loading Loading @@ -812,11 +816,31 @@ function jgrep() find . -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@" find . -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@" } } function mkgrep() { find . -type f -name "*\.mk" -print0 | xargs -0 grep --color -n "$@" } function rcgrep() { find . -type f -name "*\.rc" -print0 | xargs -0 grep --color -n "$@" } function shgrep() { find . -type f -name "*\.sh" -print0 | xargs -0 grep --color -n "$@" } function cgrep() function cgrep() { { find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@" find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@" } } function hgrep() { find . -type f -name "*\.h" -print0 | xargs -0 grep --color -n "$@" } function resgrep() function resgrep() { { for dir in `find . -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done; for dir in `find . -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done; Loading Loading
envsetup.sh 100644 → 100755 +24 −0 Original line number Original line Diff line number Diff line Loading @@ -6,8 +6,12 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y - mm: Builds all of the modules in the current directory. - mm: Builds all of the modules in the current directory. - mmm: Builds all of the modules in the supplied directories. - mmm: Builds all of the modules in the supplied directories. - cgrep: Greps on all local C/C++ files. - cgrep: Greps on all local C/C++ files. - hgrep: Greps on all local C/C++ header files. - jgrep: Greps on all local Java files. - jgrep: Greps on all local Java files. - mkgrep: Greps on all local make files. - rcgrep: Greps on all local .rc files. - resgrep: Greps on all local res/*.xml files. - resgrep: Greps on all local res/*.xml files. - shgrep: Greps on all local .sh files. - godir: Go to the directory containing a file. - godir: Go to the directory containing a file. Look at the source to view more functions. The complete list is: Look at the source to view more functions. The complete list is: Loading Loading @@ -812,11 +816,31 @@ function jgrep() find . -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@" find . -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@" } } function mkgrep() { find . -type f -name "*\.mk" -print0 | xargs -0 grep --color -n "$@" } function rcgrep() { find . -type f -name "*\.rc" -print0 | xargs -0 grep --color -n "$@" } function shgrep() { find . -type f -name "*\.sh" -print0 | xargs -0 grep --color -n "$@" } function cgrep() function cgrep() { { find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@" find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@" } } function hgrep() { find . -type f -name "*\.h" -print0 | xargs -0 grep --color -n "$@" } function resgrep() function resgrep() { { for dir in `find . -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done; for dir in `find . -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done; Loading