From f9c06f03a23d64f1bf7d277847aed1fca75635e7 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Wed, 17 Mar 2021 21:23:13 +1300 Subject: [PATCH] pkg(brainfuck-1.0.0): Add brainfuck 1.0.0 --- packages/brainfuck/1.0.0/build.sh | 8 ++++++++ packages/brainfuck/1.0.0/environment | 4 ++++ packages/brainfuck/1.0.0/metadata.json | 6 ++++++ packages/brainfuck/1.0.0/run | 4 ++++ 4 files changed, 22 insertions(+) create mode 100644 packages/brainfuck/1.0.0/build.sh create mode 100644 packages/brainfuck/1.0.0/environment create mode 100644 packages/brainfuck/1.0.0/metadata.json create mode 100644 packages/brainfuck/1.0.0/run diff --git a/packages/brainfuck/1.0.0/build.sh b/packages/brainfuck/1.0.0/build.sh new file mode 100644 index 0000000..f52647e --- /dev/null +++ b/packages/brainfuck/1.0.0/build.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +curl "http://mazonka.com/brainf/bff4.c" -o bff4.c +gcc -O3 bff4.c -O bff4 +rm bff4.c + + + diff --git a/packages/brainfuck/1.0.0/environment b/packages/brainfuck/1.0.0/environment new file mode 100644 index 0000000..bed795b --- /dev/null +++ b/packages/brainfuck/1.0.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD:$PATH diff --git a/packages/brainfuck/1.0.0/metadata.json b/packages/brainfuck/1.0.0/metadata.json new file mode 100644 index 0000000..4b1ec24 --- /dev/null +++ b/packages/brainfuck/1.0.0/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "brainfuck", + "version": "1.0.0", + "aliases": ["bf"], + "author": "Thomas Hobson " +} diff --git a/packages/brainfuck/1.0.0/run b/packages/brainfuck/1.0.0/run new file mode 100644 index 0000000..32735c1 --- /dev/null +++ b/packages/brainfuck/1.0.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +bff4 "$@"