2021-03-18 08:18:28 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
PREFIX=$(realpath $(dirname $0))
|
|
|
|
|
2021-04-28 04:15:34 +02:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
# lolcode release
|
|
|
|
curl -L "https://github.com/justinmeza/lci/archive/refs/tags/v0.11.2.tar.gz" -o lolcode.tar.gz
|
|
|
|
tar xzf lolcode.tar.gz --strip-components=1
|
2021-03-18 08:18:28 +01:00
|
|
|
|
|
|
|
# Building and installing lolcode
|
2021-03-18 23:25:25 +01:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX:STRING="$PREFIX" .
|
|
|
|
make -j$(nproc)
|
|
|
|
make install -j$(nproc)
|
2021-03-18 08:18:28 +01:00
|
|
|
|
|
|
|
# Cleaning up
|
2021-04-28 04:15:34 +02:00
|
|
|
cd ../ && rm -rf build
|