-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdev_env
More file actions
84 lines (84 loc) · 1.93 KB
/
dev_env
File metadata and controls
84 lines (84 loc) · 1.93 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# dev_env: set up environment for ProofPower development:
#
# Build directory:
#
DIR=${PPDIR:-$HOME/git/pp}
BLD=$DIR/bld
#
# Pick up versions of Poly/ML, SML/NJ, MLton and ProofPower:
# Note that MLton is only relevant to the dev package: hol
# zed and daz will only build on Poly/ML and SML/NJ
# The compilers are assumed to be installed in /usr/local/<name>/<version>
# where <name> is one of poly, smlnj, mlton or pp.
# We assume latest is a link to a default version to use.
# No harm is done if you don't have all these directories.
#
polyVER=${POLYVER:-latest}
smlnjVER=${SMLNJVER:-latest}
mltonVER=${MLTONVER:-latest}
ppVER=${PPVER:-latest}
#
# Clear relevant enviroment variabls
#
unset PPENVDEBUG
unset PPCOMPILER
unset PPHOME
unset TEXINPUTS
unset BIBINPUTS
unset BSTINPUTS
unset PPDATABASEPATH
unset PPCOMPACT
unset PPETCPATH
unset PPTARGETDIR
unset XUSERFILESEARCHPATH
#
# Path:
#
PATH=/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin
LOCPATH=\
"$BLD"/bin:\
/usr/local/pp/$ppVER/bin:\
/usr/local/poly/$polyVER/bin:\
/usr/local/smlnj/$smlnjVER/bin:\
/usr/local/mlton/$mltonVER/bin:\
/usr/local/bin
OPTPATH=/opt/local/bin:/opt/local/sbin
export PATH=.:$HOME/bin:$LOCPATH:$PATH:$OPTPATH
#
# Man path:
#
MANPATH=/usr/local/pp/$ppVER/man:/usr/local/man:/opt/local/share/man:
#
# Use Poly/ML to build ProofPower for preference:
#
export PPCOMPILER=POLYML
#
export PPVER=3.1.`whoami`.`date +%Y%m%d`
export PPHOME="$BLD"
export PPTARGETDIR="$BLD"
export PPDATABASEPATH=.:"$BLD"/db
export PPETCPATH=.:"$BLD"/etc
#
# The following is for xpp - use Motif from the MacPorts installation
#
export USERCFLAGS=-I/opt/local/include
export USERCLIBS=-L/opt/local/lib
#
# TeX, LaTeX etc.
#
export TEXINPUTS=.:$BLD/tex:
export BIBINPUTS=.:$BLD/tex:
export BSTINPUTS=.:$BLD/tex:
#
# Use plain ASCII for sort order etc.
#
export LC_ALL=C
#
# Tidy up shell namespace:
#
unset DIR BLD polyVER smlnjVER mltonVER ppVER LOCPATH OPTPATH
#
# Report on what we have done:
#
env | egrep ^PP | sort