Commit 4d951f0c authored by sebt3's avatar sebt3

added setup.bashrc option

parent 09c90ade
......@@ -418,6 +418,20 @@ pyra.install() {
pyra_apt install $pkgs
}
setup.bashrc() {
local back=$HOME/.bashrc.$(log.stamp)
cp $HOME/.bashrc $back
#export TOOLCHAIN_ROOT=$DEST
if ! grep -q "export TOOLCHAIN_ROOT" $back;then
cat>>$HOME/.bashrc <<ENDRC
export TOOLCHAIN_ROOT=$DEST
pyra_setprj() {
. \$TOOLCHAIN_ROOT/environment-setup
pyra_setprj "\$@"
}
ENDRC
fi
}
################################################################################
......@@ -445,6 +459,7 @@ args.option ACTION rootfs.fix "Correct path in all .la and .pc files and broke
args.option ACTION install "Do all the previous steps"
args.option ACTION pyra.apt "run apt-get with your OPTS in the rootfs"
args.option ACTION pyra.build-dep "Get the build dependencies for OPTS"
args.option ACTION setup.bashrc "Configure this user .bashrc file"
ARGS_short_cmd+=(ACTION OPTS)
args.parse "$@"
[[ "$ACTION" == "install" ]] && OUT_level=WARNING
......
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