# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
target="/etc/env.d/99chromiumos" | |
sudo_clobber "${target}" <<EOF | |
PATH=/home/$USER/trunk/chromite/bin:/home/$USER/depot_tools | |
CROS_WORKON_SRCROOT=/home/$USER/trunk | |
PORTAGE_USERNAME=$USER | |
EOF | |
sudo env-update | |
info "Chroot upgraded to version 2: PATH is updated globally" | |
exit 0 |