Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / test / enter-gdp-environment.sh @ master

History | View | Annotate | Download (685 Bytes)

1 cb38fbaf Eric Allman
#!/bin/sh
2
3
#
4
#  Run this from the root of the GDP source tree
5
#
6
7
export GDP_ROOT=${1:-$HOME/tmp/gdp}
8
export GDP_KEYS=$GDP_ROOT/KEYS
9
export GDP_ETC=$GDP_ROOT/etc
10
export GDP_LOG_DIR=$GDP_ROOT/log
11
export GDP_USER=$USER
12
13
make_dir() {
14
	test -d $1 || mkdir -p $1
15
}
16
17
make_dir $GDP_ROOT
18
make_dir $GDP_LOG_DIR
19
make_dir $GDP_KEYS
20
21
make_dir $GDP_ROOT/bin 
22
make_dir $GDP_ROOT/etc
23
make_dir $GDP_ROOT/include
24
make_dir $GDP_ROOT/lib
25
make_dir $GDP_ROOT/sbin 
26
make_dir $GDP_ROOT/share/man
27
28
export LOCALROOT=$GDP_ROOT
29
30
make O=
31
make install LOCALROOT=$LOCALROOT
32
33
export PATH=$GDP_ROOT/bin:$GDP_ROOT/sbin:$PATH
34 911118ad Eric Allman
export PROMPT_TAG=@
35 cb38fbaf Eric Allman
36
echo "==== Now entering environment with GDP_ROOT=$GDP_ROOT"
37
exec $SHELL