blob: 2fc191707aed0caaefdd4ab730d36f010dc315a0 (
plain)
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
|
#!/bin/bash
#
source "$(dirname "$0")/get-script-header.sh"
lfscrepo="https://github.com/CVC4/LFSC.git"
dirname="lfsc-checker"
function gitclone {
if which git &> /dev/null
then
git clone "$1" "$2"
else
echo "Need git to clone LFSC checker. Please install git." >&2
exit 1
fi
}
if [ -e lfsc-checker ]; then
echo 'error: file or directory "lfsc-checker" already exists!' >&2
exit 1
fi
mkdir $dirname
cd $dirname
LFSC_PATH=`pwd`
gitclone $lfscrepo .
mkdir install
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$LFSC_PATH/install ..
make install
cd ..
echo
echo ===================== Now configure CVC4 with =====================
echo ./configure.sh --lfsc
|