2015-12-22 11:10:07 +01:00
|
|
|
#!/bin/bash
|
2017-01-20 01:54:11 +01:00
|
|
|
|
|
|
|
# This file is part of Jehanne.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2016-2017 Giacomo Tesio <giacomo@tesio.it>
|
|
|
|
|
2015-12-22 11:10:07 +01:00
|
|
|
export JEHANNE=`git rev-parse --show-toplevel`
|
|
|
|
export PATH="$JEHANNE/hacking/bin:$PATH"
|
2016-11-25 14:41:57 +01:00
|
|
|
export PATH="$JEHANNE/hacking/cross/toolchain/bin:$PATH"
|
2017-03-30 16:05:53 +02:00
|
|
|
export CPATH="$JEHANNE/hacking/cross/toolchain/lib/gcc/x86_64-jehanne/4.9.4/include:$JEHANNE/hacking/cross/toolchain/lib/gcc/x86_64-jehanne/4.9.4/include-fixed"
|
2015-12-22 11:10:07 +01:00
|
|
|
export ARCH=amd64
|
|
|
|
|
2016-11-25 14:41:57 +01:00
|
|
|
export TOOLPREFIX=x86_64-jehanne-
|
|
|
|
|
2017-01-19 19:26:21 +01:00
|
|
|
# let each developer to customize her environment
|
|
|
|
if [ "$JEHANNE_DEVELOPER_DIR" = "" ]; then
|
|
|
|
JEHANNE_DEVELOPER_DIR=$HOME/.jehanne/
|
|
|
|
fi
|
|
|
|
if [ -d "$JEHANNE_DEVELOPER_DIR" ]; then
|
|
|
|
export JEHANNE_DEVELOPER_DIR
|
|
|
|
if [ -f "$JEHANNE_DEVELOPER_DIR/devshell.sh" ]; then
|
|
|
|
if [ "$JEHANNE_DEVELOPER_INIT_RUN" != "1" ]; then
|
|
|
|
. "$JEHANNE_DEVELOPER_DIR/devshell.sh"
|
|
|
|
export JEHANNE_DEVELOPER_INIT_RUN=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2015-12-22 11:10:07 +01:00
|
|
|
bash --rcfile <(cat ~/.bashrc; echo 'PS1="JehanneDEV $PS1"')
|