diff --git a/packages/forth/0.7.3/build.sh b/packages/forth/0.7.3/build.sh new file mode 100644 index 0000000..81c2182 --- /dev/null +++ b/packages/forth/0.7.3/build.sh @@ -0,0 +1,12 @@ +curl -L https://ftp.gnu.org/gnu/gforth/gforth-0.7.3.tar.gz -o forth.tar.gz +tar xzf forth.tar.gz +rm forth.tar.gz + +cd gforth-0.7.3/ +./BUILD-FROM-SCRATCH --host=x86_64 --build=x86_64 + +make +make install + +chmod +x ./gforth +cd .. diff --git a/packages/forth/0.7.3/environment b/packages/forth/0.7.3/environment new file mode 100644 index 0000000..10092be --- /dev/null +++ b/packages/forth/0.7.3/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH +export FORTH_PATH=$PWD/gforth-0.7.3 diff --git a/packages/forth/0.7.3/metadata.json b/packages/forth/0.7.3/metadata.json new file mode 100644 index 0000000..cd23825 --- /dev/null +++ b/packages/forth/0.7.3/metadata.json @@ -0,0 +1,7 @@ +{ + "language": "forth", + "version": "0.7.3", + "aliases": [ + "gforth" + ] +} diff --git a/packages/forth/0.7.3/run b/packages/forth/0.7.3/run new file mode 100644 index 0000000..5556ca3 --- /dev/null +++ b/packages/forth/0.7.3/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +$FORTH_PATH/gforth "$@" + diff --git a/packages/forth/0.7.3/test.forth b/packages/forth/0.7.3/test.forth new file mode 100644 index 0000000..c50ef0b --- /dev/null +++ b/packages/forth/0.7.3/test.forth @@ -0,0 +1 @@ +.( OK) bye diff --git a/packages/sqlite3/3.36.0/run b/packages/sqlite3/3.36.0/run index 8484f3d..3aff0c1 100644 --- a/packages/sqlite3/3.36.0/run +++ b/packages/sqlite3/3.36.0/run @@ -1,3 +1,19 @@ #!/bin/bash -sqlite3 < "$1" +code=`cat "$1"` + +shift + +argv_text="" + +for arg in "$@" +do + argv_text+='insert into argv (arg) values ("'"`echo "$arg" | sed 's/"/""/g'`"'"); +' +done + + +sqlite3 <<< "create table argv (arg text); +$argv_text +$code" + diff --git a/readme.md b/readme.md index 06afe11..a65ec87 100644 --- a/readme.md +++ b/readme.md @@ -332,6 +332,7 @@ Content-Type: application/json `erlang`, `file`, `forte`, +`forth`, `fortran`, `freebasic`, `fsharp.net`,