diff options
Diffstat (limited to 'depot_tools.install')
-rw-r--r-- | depot_tools.install | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/depot_tools.install b/depot_tools.install index 7f8d306c794e..44b37f73ae2f 100644 --- a/depot_tools.install +++ b/depot_tools.install @@ -1,19 +1,22 @@ #!/bin/bash -post_install() +_prompt_modify_path() { - source /etc/profile + cat << EOF +>>>> Add export PATH="\${PATH}:/opt/depot_tools" to .bashrc/.zshrc or setenv PATH "\${PATH}:/opt/depot_tools" to ~/.tcshrc if you don't find any depot_tools related commands." +EOF +} +post_install() +{ echo ">>>> Please note that this tools and some related projects (for example ChromeOS) use python2." echo ">>>> They assume that python2 is the default python interpreter. ArchLinux default is python3, so be prepared to fix python references in your works." echo ">>>> This package contains a repo_fix.sh script. Use it to fix python2 references in python's script created after 'repo init' command" echo ">>>> For getting started with depot_tools, visit this page: http://dev.chromium.org/developers/how-tos/depottools" - echo ">>>> Run 'source /etc/profile' if you don't find any depot_tools related commands." + _prompt_modify_path } post_upgrade() { - source /etc/profile - - echo ">>>> Run 'source /etc/profile' if you don't find any depot_tools related commands." + _prompt_modify_path } |