-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_hol4.sh
executable file
·31 lines (23 loc) · 1.08 KB
/
setup_hol4.sh
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
#!/bin/bash
# Install Apache Ant, ruby
apt install ant ruby2.7
#FIXME: Change to your local installation/git repository folder
BASEDIR=/opt/test/
cd $BASEDIR
# Install polyml from git
git clone https://github.com/polyml/polyml.git polyml && \
cd polyml && \
./configure --prefix=/usr && make && make compiler && make install
# Install HOL4
cd $BASEDIR && \
git clone https://github.com/HOL-Theorem-Prover/HOL HOL && \
cd HOL && git checkout master &&\
poly < tools/smart-configure.sml && bin/build
export HOLDIR=$BASEDIR/HOL/
cd $BASEDIR && \
echo "Lassie cannot be installed without the non-anonymous material. Please put `non_anonymous.zip` in $BASEDIR and rerun the script."
unzip non_anonymous.zip -d Lassie
cd Lassie/sempre && ./pull-dependencies core interactive && ant core interactive
cd $BASEDIR/Lassie/src && $HOLDIR/bin/Holmake
export TERM=xterm-color && cd $BASEDIR/Lassie/examples && $HOLDIR/bin/Holmake -j1
echo "Please add the following lines to your shell configuration file:\n export HOLDIR=$BASEDIR/HOL/ \nexport LASSIEDIR=$BASEDIR/Lassie/"