xref: /haiku/data/system/boot/SetupEnvironment (revision a381c8a06378de22ff08adf4282b4e3f7e50d250)
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
12
13case `uname -m` in
14BePC|Intel|unknown)
15	BE_HOST_CPU=x86
16	BETOOLS="$BUILDHOME/tools/gnupro/bin"
17	;;
18BeMac|BeBox)
19	BE_HOST_CPU=ppc
20	BETOOLS="$BUILDHOME/bin"
21	;;
22*)
23	BE_HOST_CPU=unknown
24	BETOOLS="$BUILDHOME/bin"
25esac
26
27BELIBRARIES="$BUILDHOME/lib/$BE_HOST_CPU"
28BH=$BUILDHOME/headers
29BEINCLUDES="$BH;$BH/be;$BH/be/precompiled;$BH/be/bone;$BH/posix;$BH/cpp;$BH/be/app;$BH/be/device;$BH/be/interface;$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"
30
31export BUILDHOME
32export BETOOLS
33export BELIBRARIES
34export BEINCLUDES
35export BE_HOST_CPU
36
37# for the "cc" and "ld" shell scripts
38
39export BE_C_COMPILER=gcc
40export BE_CPLUS_COMPILER="g++"
41export BE_LINKER=ld
42export BE_DEFAULT_C_FLAGS=""
43export BE_DEFAULT_CPLUS_FLAGS=""
44
45if [ "$SAFEMODE" != "yes" ]
46then
47	export PATH=.:$HOME/config/bin:/boot/common/bin:/bin:/boot/apps:/boot/preferences:/boot/beos/apps:/boot/beos/preferences:$BETOOLS
48	export LIBRARY_PATH="%A/lib:$HOME/config/lib:/boot/common/lib:/boot/beos/system/lib"
49	export ADDON_PATH="%A/add-ons:$HOME/config/add-ons:/boot/beos/system/add-ons"
50else
51	export PATH=.:/boot/common/bin:/bin:/boot/apps:/boot/preferences:/boot/beos/apps:/boot/beos/preferences:$BETOOLS
52	export LIBRARY_PATH="%A/lib:/boot/common/lib:/boot/beos/system/lib"
53	export ADDON_PATH="%A/add-ons:/boot/beos/system/add-ons"
54fi
55
56# media kit
57if [ -f $HOME/config/settings/use_old_audio ]
58then
59	export USE_OLD_AUDIO=true
60fi
61
62if [ "$SAFEMODE" != "yes" ]
63then
64	if [ -f $HOME/config/boot/UserSetupEnvironment ]
65	then
66     	. $HOME/config/boot/UserSetupEnvironment
67	fi
68fi
69
70