-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh.in
46 lines (40 loc) · 1.76 KB
/
config.sh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Named directories.
p=@PROFILE_DIR@
pb=$p/build; pi=$p/install; ps=$p/src
pbs=$p/build/stable; pis=$p/install/stable; pss=$p/src/stable
pbu=$p/build/unstable; piu=$p/install/unstable; psu=$p/src/unstable
# RobotPkg
export ROBOTPKG_BASE=$pis
export PATH="$ROBOTPKG_BASE/bin:$PATH"
export PATH="$ROBOTPKG_BASE/sbin:$PATH"
export PKG_CONFIG_PATH="$ROBOTPKG_BASE/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$ROBOTPKG_BASE/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$ROBOTPKG_BASE/kineo/lib:$LD_LIBRARY_PATH"
export PYTHONPATH="$ROBOTPKG_BASE/lib/python2.6/site-packages:$PYTHONPATH"
export PYTHONPATH="$ROBOTPKG_BASE/lib/python2.6/dist-packages:$PYTHONPATH"
export MANPATH="$MANPATH:$ROBOTPKG_BASE/share/man"
# Development prefix.
export PATH="$piu/bin:$PATH"
export PATH="$piu/sbin:$PATH"
export PKG_CONFIG_PATH="$piu/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$piu/lib:$LD_LIBRARY_PATH"
export PYTHONPATH="$piu/lib/python2.6/site-packages:$PYTHONPATH"
export PYTHONPATH="$piu/lib/python2.6/dist-packages:$PYTHONPATH"
export LTDL_LIBRARY_PATH="$piu/lib/roboptim-core:$LTDL_LIBRARY_PATH"
export MANPATH="$MANPATH:$piu/share/man"
# For RobOptim...
export LTDL_LIBRARY_PATH="$ROBOTPKG_BASE/lib/roboptim:$LTDL_LIBRARY_PATH"
export LTDL_LIBRARY_PATH="$piu/lib/roboptim:$LTDL_LIBRARY_PATH"
# Kineo
export RLM_LICENSE=$(find $HOME/profiles/license -name "RLM_Toulouse-`hostname | sed 's/.laas.fr$//'`-*.lic")
if test x"$RLM_LICENSE" = x; then
echo "Warning: No Kineo license have been found for that machine."
fi
export KPP_INSTALL_DIR=$ROBOTPKG_BASE/kineo
# ROS
ROS_PROFILE=""
if [ ${ROS_PROFILE} ]; then
test -f "$psu/ros-${ROS_PROFILE}/setup.zsh" && source "$psu/ros-${ROS_PROFILE}/setup.zsh"
else
test -f "$psu/ros/setup.zsh" && source "$psu/ros/setup.zsh"
fi