forked from MDSplus/mdsplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap
executable file
·61 lines (46 loc) · 1 KB
/
bootstrap
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
#! /bin/sh
cd $(dirname $0)
check() { which $1 > /dev/null 2>&1; }
unset abort
testprog() {
# $1 prog, $2 package
if ! check $1
then
export abort=$?
echo "Please install package providing '$1' in order to bootstrap"
shift
echo "The required package may be named $@."
echo "We recommend using docker if available:"
echo " deploy/build.sh --os=bootstrap"
fi
}
if check python3
then PYTHON=python3
elif check python2
then PYTHON=python2
else PYTHON=python
fi
testprog aclocal automake
testprog autoheader autoconf
testprog automake automake
testprog autoconf autoconf
testprog $PYTHON python2 or python3
testprog bison bison
testprog flex flex
if [ ! -z $abort ]
then
exit $abort
fi
conf/update_submodules
python/generate_tests
deploy/git_revision.sh # must be done before autoconf
aclocal -I ./m4
autoheader
# libtoolize
automake --add-missing
autoconf
$PYTHON deploy/gen_messages.py
$PYTHON deploy/gen_compound_opcbuiltins.py
deploy/yylex.gen tdishr
deploy/yylex.gen treeshr
deploy/yylex.gen mdsdcl