build.sh 545 Bytes
Newer Older
Camil Staps's avatar
Camil Staps committed
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash
set -e

install_clean.sh 'base lib-platform lib-tcpip' 2018-10-16

PACKAGES="patch jq"
apt-get update -qq
apt-get install -qq $PACKAGES --no-install-recommends

make distclean CloogleServer builddb

Camil Staps's avatar
Camil Staps committed
12
if [ ! -f libs.json ]; then ln -s ../libs.json; fi
Camil Staps's avatar
Camil Staps committed
13
../util/fetch_libs.sh /opt/clean/lib
Camil Staps's avatar
Camil Staps committed
14
./builddb > types.json
Camil Staps's avatar
Camil Staps committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

rm -rf \
	Cloogle \
	Clean\ System\ Files \
	clean-compiler \
	*.dcl *.icl \
	Dockerfile \
	Makefile \
	/opt/clean

apt-get remove --purge -qq $PACKAGES
apt-get autoremove -qq
rm -rf /var/lib/apt/lists

uninstall_clean.sh