1# 2# First we set up a bunch of environment variables that we want everyone 3# to inherit 4# 5 6export HOME=/boot/home 7 8BUILDHOME=/boot/develop 9BETOOLS="$BUILDHOME/tools/gnupro/bin" 10 11case `uname -m` in 12BePC|Intel|unknown) 13 BE_HOST_CPU=x86 14 ;; 15BeMac|BeBox) 16 BE_HOST_CPU=ppc 17 ;; 18*) 19 BE_HOST_CPU=unknown 20esac 21 22BELIBRARIES="$BUILDHOME/abi/current/library-paths/common:$BUILDHOME/lib/$BE_HOST_CPU" 23BH=$BUILDHOME/headers 24BEINCLUDES="$BH;$BH/be;$BH/posix;$BH/glibc;$BH/cpp;$BH/be/app;$BH/be/device;$BH/be/interface;$BH/be/locale;$BH/be/media;$BH/be/midi;$BH/be/midi2;$BH/be/net;$BH/be/kernel;$BH/be/storage;$BH/be/support;$BH/be/game;$BH/be/opengl;$BH/be/drivers;$BH/gnu;$BH/be/mail;$BH/be/translation;$BH/be/devel;$BH/be/add-ons/graphics;$BH/be/be_apps/Deskbar;$BH/be/be_apps/NetPositive;$BH/be/be_apps/Tracker" 25 26export BUILDHOME 27export BETOOLS 28export BELIBRARIES 29export BEINCLUDES 30export BE_HOST_CPU 31 32# for the "cc" and "ld" shell scripts 33 34export BE_C_COMPILER=gcc 35export BE_CPLUS_COMPILER="g++" 36export BE_LINKER=ld 37export BE_DEFAULT_C_FLAGS="" 38export BE_DEFAULT_CPLUS_FLAGS="" 39 40if [ "$SAFEMODE" != "yes" ] 41then 42 export PATH=.:$HOME/config/bin:/boot/common/bin:/bin:/boot/apps:/boot/preferences:/boot/system/apps:/boot/system/preferences:$BETOOLS 43 export LIBRARY_PATH="%A/lib:$HOME/config/lib:/boot/common/lib:/boot/system/lib" 44 export ADDON_PATH="%A/add-ons:$HOME/config/add-ons:/boot/common/add-ons:/boot/system/add-ons" 45else 46 export PATH=.:/boot/common/bin:/bin:/boot/apps:/boot/preferences:/boot/system/apps:/boot/system/preferences:$BETOOLS 47 export LIBRARY_PATH="%A/lib:/boot/common/lib:/boot/system/lib" 48 export ADDON_PATH="%A/add-ons:/boot/common/add-ons:/boot/system/add-ons" 49fi 50 51# media kit 52if [ -f $HOME/config/settings/use_old_audio ] 53then 54 export USE_OLD_AUDIO=true 55fi 56 57if [ "$SAFEMODE" != "yes" ] 58then 59 if [ -f $HOME/config/boot/UserSetupEnvironment ] 60 then 61 . $HOME/config/boot/UserSetupEnvironment 62 fi 63fi 64