mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 13:36:31 +02:00
18 lines
398 B
Bash
Executable file
18 lines
398 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
PREFIX=$(realpath $(dirname $0))
|
|
|
|
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
|
|
|
|
# Building and installing lolcode
|
|
cmake -DCMAKE_INSTALL_PREFIX:STRING="$PREFIX" .
|
|
make -j$(nproc)
|
|
make install -j$(nproc)
|
|
|
|
# Cleaning up
|
|
cd ../ && rm -rf build
|