diff --git a/packages/holyc/0.0.9/build.sh b/packages/holyc/0.0.9/build.sh new file mode 100755 index 0000000..6486307 --- /dev/null +++ b/packages/holyc/0.0.9/build.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +[[ -d "bin" ]] && exit 0 +PREFIX=$(realpath $(dirname $0)) + +curl -L "https://github.com/Jamesbarford/holyc-lang/archive/refs/tags/beta-v0.0.9.zip" -o holyc.zip +unzip ./holyc.zip +cd ./holyc-lang-beta-v0.0.9 + +mkdir "${PREFIX}"/lib + +make \ + INSTALL_PREFIX="${PREFIX}" +make install +rm -f ./holyc.zip diff --git a/packages/holyc/0.0.9/compile b/packages/holyc/0.0.9/compile new file mode 100644 index 0000000..d422421 --- /dev/null +++ b/packages/holyc/0.0.9/compile @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Compile HolyC files +mv $1 $1.HC +filename=$1.HC +shift +hcc $filename diff --git a/packages/holyc/0.0.9/environment b/packages/holyc/0.0.9/environment new file mode 100644 index 0000000..977a5e8 --- /dev/null +++ b/packages/holyc/0.0.9/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH diff --git a/packages/holyc/0.0.9/metadata.json b/packages/holyc/0.0.9/metadata.json new file mode 100644 index 0000000..d65ff0f --- /dev/null +++ b/packages/holyc/0.0.9/metadata.json @@ -0,0 +1,9 @@ +{ + "language": "HolyC", + "version": "0.0.9", + "aliases": ["holyc", "HolyC", "hcc"], + "limit_overrides": { + "compile_timeout": 15000, + "compile_cpu_time": 15000 + } +} diff --git a/packages/holyc/0.0.9/test.HC b/packages/holyc/0.0.9/test.HC new file mode 100644 index 0000000..0366127 --- /dev/null +++ b/packages/holyc/0.0.9/test.HC @@ -0,0 +1,4 @@ +U0 Main() +{ + "hello, world!\n"; +}