2004-11-03 19:36:40 +03:00
|
|
|
#
|
|
|
|
# First we set up a bunch of environment variables that we want everyone
|
|
|
|
# to inherit
|
|
|
|
#
|
|
|
|
|
|
|
|
export HOME=/boot/home
|
2011-05-08 22:26:51 +04:00
|
|
|
export LC_CTYPE="en_US.UTF-8"
|
2004-11-03 19:36:40 +03:00
|
|
|
|
2011-06-16 11:00:06 +04:00
|
|
|
BUILDHOME=/boot/system/develop
|
|
|
|
|
2004-11-03 19:36:40 +03:00
|
|
|
case `uname -m` in
|
2005-04-11 22:24:09 +04:00
|
|
|
BePC|Intel|unknown)
|
2004-11-03 19:36:40 +03:00
|
|
|
BE_HOST_CPU=x86
|
|
|
|
;;
|
|
|
|
BeMac|BeBox)
|
|
|
|
BE_HOST_CPU=ppc
|
|
|
|
;;
|
|
|
|
*)
|
2012-08-16 23:32:29 +04:00
|
|
|
BE_HOST_CPU=`uname -m`
|
2004-11-03 19:36:40 +03:00
|
|
|
esac
|
|
|
|
|
2013-04-25 20:00:08 +04:00
|
|
|
# not used by Haiku, but by (legacy) applications (e.g. Pe)
|
2004-11-03 19:36:40 +03:00
|
|
|
BH=$BUILDHOME/headers
|
2016-07-30 01:21:13 +03:00
|
|
|
BEINCLUDES="$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/NetPositive;$BH/be/be_apps/Tracker"
|
2004-11-03 19:36:40 +03:00
|
|
|
|
|
|
|
export BUILDHOME
|
|
|
|
export BEINCLUDES
|
|
|
|
export BE_HOST_CPU
|
|
|
|
|
2018-08-22 00:01:53 +03:00
|
|
|
if [ "$SAFEMODE" != "yes" ]; then
|
2013-09-30 00:09:00 +04:00
|
|
|
export PATH=.:$HOME/config/non-packaged/bin:$HOME/config/bin:/boot/system/non-packaged/bin:/bin:/boot/system/apps:/boot/system/preferences
|
|
|
|
export LIBRARY_PATH="%A/lib:$HOME/config/non-packaged/lib:$HOME/config/lib:/boot/system/non-packaged/lib:/boot/system/lib"
|
|
|
|
export ADDON_PATH="%A/add-ons:$HOME/config/non-packaged/add-ons:$HOME/config/add-ons:/boot/system/non-packaged/add-ons:/boot/system/add-ons"
|
2004-11-03 19:36:40 +03:00
|
|
|
else
|
2013-09-30 00:09:00 +04:00
|
|
|
export PATH=.:/bin:/boot/system/apps:/boot/system/preferences
|
2011-06-16 11:00:06 +04:00
|
|
|
export LIBRARY_PATH="%A/lib:/boot/system/lib"
|
|
|
|
export ADDON_PATH="%A/add-ons:/boot/system/add-ons"
|
2004-11-03 19:36:40 +03:00
|
|
|
fi
|
|
|
|
|
2012-02-24 02:09:44 +04:00
|
|
|
# Locale
|
2018-08-22 00:01:53 +03:00
|
|
|
export LC_MESSAGES=`locale --message`
|
|
|
|
export LC_NUMERIC=`locale --format`
|
|
|
|
export LC_TIME=`locale --time`
|
2012-02-24 02:09:44 +04:00
|
|
|
export LC_COLLATE=$LC_MESSAGES
|
|
|
|
export LC_CTYPE=$LC_MESSAGES
|
|
|
|
export LC_MONETARY=$LC_NUMERIC
|
|
|
|
|
2018-08-22 00:01:53 +03:00
|
|
|
if [ "$SAFEMODE" != "yes" ]; then
|
|
|
|
if [ -f $HOME/config/settings/boot/UserSetupEnvironment ]; then
|
2013-05-11 11:35:06 +04:00
|
|
|
. $HOME/config/settings/boot/UserSetupEnvironment
|
2004-11-03 19:36:40 +03:00
|
|
|
fi
|
|
|
|
fi
|