xref: /haiku/data/system/boot/SetupEnvironment (revision b55a57da7173b9af0432bd3e148d03f06161d036)
1#
2# First we set up a bunch of environment variables that we want everyone
3# to inherit
4#
5
6export HOME=/boot/home
7export SHELL=/bin/sh
8export USER=baron
9export GROUP=users
10
11BUILDHOME=/boot/develop
12BETOOLS="$BUILDHOME/tools/gnupro/bin"
13
14case `uname -m` in
15BePC|Intel|unknown)
16	BE_HOST_CPU=x86
17	;;
18BeMac|BeBox)
19	BE_HOST_CPU=ppc
20	;;
21*)
22	BE_HOST_CPU=unknown
23esac
24
25BELIBRARIES="$BUILDHOME/abi/current/library-paths/common:$BUILDHOME/lib/$BE_HOST_CPU"
26BH=$BUILDHOME/headers
27BEINCLUDES="$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"
28
29export BUILDHOME
30export BETOOLS
31export BELIBRARIES
32export BEINCLUDES
33export BE_HOST_CPU
34
35# for the "cc" and "ld" shell scripts
36
37export BE_C_COMPILER=gcc
38export BE_CPLUS_COMPILER="g++"
39export BE_LINKER=ld
40export BE_DEFAULT_C_FLAGS=""
41export BE_DEFAULT_CPLUS_FLAGS=""
42
43if [ "$SAFEMODE" != "yes" ]
44then
45	export PATH=.:$HOME/config/bin:/boot/common/bin:/bin:/boot/apps:/boot/preferences:/boot/system/apps:/boot/system/preferences:$BETOOLS
46	export LIBRARY_PATH="%A/lib:$HOME/config/lib:/boot/common/lib:/boot/system/lib"
47	export ADDON_PATH="%A/add-ons:$HOME/config/add-ons:/boot/system/add-ons"
48else
49	export PATH=.:/boot/common/bin:/bin:/boot/apps:/boot/preferences:/boot/system/apps:/boot/system/preferences:$BETOOLS
50	export LIBRARY_PATH="%A/lib:/boot/common/lib:/boot/system/lib"
51	export ADDON_PATH="%A/add-ons:/boot/system/add-ons"
52fi
53
54# media kit
55if [ -f $HOME/config/settings/use_old_audio ]
56then
57	export USE_OLD_AUDIO=true
58fi
59
60if [ "$SAFEMODE" != "yes" ]
61then
62	if [ -f $HOME/config/boot/UserSetupEnvironment ]
63	then
64     	. $HOME/config/boot/UserSetupEnvironment
65	fi
66fi
67