# This file must be used with "source bin/activate" *from bash* # you cannot run it directly # TODO deactivate XCT=/mbari/LRAUV/Tools/linuxi64/cross-compile-tools export XCT PATH="/opt/nxp/gcc-4.3.2-glibc-2.7/bin:$XCT/bin:$PATH" #PATH="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin:$XCT/bin:$PATH" export PATH if [ -z "$LRAUVROOT" ]; then #LRAUVROOT=/mbari/LRAUV/rootfs/2.6.27.8-nxp #LRAUVROOT=/mbari/LRAUV/rootfs/2.6.27.8 #LRAUVROOT=/mbari/LRAUV/rootfs/2.6.39.2 #LRAUVROOT=/mbari/LRAUV/rootfs/2.6.27.8-nxp-middleware LRAUVROOT=/mbari/LRAUV/rootfs/rootfs-lcm-gpio-11jan18-0 export LRAUVROOT fi CFLAGS="-I$LRAUVROOT/usr/include -I$LRAUVROOT/usr/local/include" CPPFLAGS="-I$LRAUVROOT/usr/include -I$LRAUVROOT/usr/local/include" CXXFLAGS="-I$LRAUVROOT/usr/include -I$LRAUVROOT/usr/local/include" LDFLAGS="-L$LRAUVROOT/usr/lib -L$LRAUVROOT/usr/local/lib" PKG_CONFIG_PATH="$LRAUVROOT/usr/lib/pkgconfig:$LRAUVROOT/usr/lib/local/pkgconfig" export CFLAGS export CPPFLAGS export CXXFLAGS export LDFLAGS export PKG_CONFIG_PATH parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } PS1="(LRAUV-XCT)[\u@\h \W\$(parse_git_branch)]$ " export PS1 # This should detect bash and zsh, which have a hash command that must # be called to get it to forget past commands. Without forgetting # past commands the $PATH changes we made may not be respected if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then hash -r fi