Newer
Older
::() { echo ":: $*" ; "$@" ; }
die() { echo "$*" ; exit 1 ; }
[ -d .git ] || die "$0 only works in the git-repository!"
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
:: mkdir -p $dir
:: pushd $dir
:: git --git-dir=.git pull || :: git clone .. .
make clean
oasis setup
ocaml setup.ml -configure --enable-static
ocaml setup.ml -build
files=(
)
binary() {
files+=( "$1" )
cp $1.native $1
}
binary coalg
binary cool-testsuite
binary coalgcompare
binary cool-owl
files+=(
*.sh
BUGS
INSTALL
VERSION
_oasis
testbench/
cool2tatl
setup.ml
src/
)
cat >VERSION <<EOF
COOL Static Linux-Binaries
==========================
This version of COOL was...
- build on $(date).
- build for the architecture $(uname -m).
- distributed without benchmarks (to reduce file size)