diff --git a/packages/freebasic/1.8.0/build.sh b/packages/freebasic/1.8.0/build.sh new file mode 100755 index 0000000..bd58488 --- /dev/null +++ b/packages/freebasic/1.8.0/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +curl -L "https://sourceforge.net/projects/fbc/files/FreeBASIC-1.08.0/Binaries-Linux/FreeBASIC-1.08.0-linux-x86_64.tar.gz/download" -o freebasic.tar.gz +tar xf freebasic.tar.gz --strip-components=1 +rm freebasic.tar.gz diff --git a/packages/freebasic/1.8.0/compile b/packages/freebasic/1.8.0/compile new file mode 100644 index 0000000..b836b3d --- /dev/null +++ b/packages/freebasic/1.8.0/compile @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Compile bas files +fbc -lang qb -b "$@" -x out diff --git a/packages/freebasic/1.8.0/environment b/packages/freebasic/1.8.0/environment new file mode 100644 index 0000000..144c737 --- /dev/null +++ b/packages/freebasic/1.8.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Path to fbc compiler +export PATH=$PWD/bin:$PATH diff --git a/packages/freebasic/1.8.0/metadata.json b/packages/freebasic/1.8.0/metadata.json new file mode 100644 index 0000000..1dcf1ff --- /dev/null +++ b/packages/freebasic/1.8.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "freebasic", + "version": "1.8.0", + "aliases": ["bas", "fbc", "basic", "qbasic", "quickbasic"] +} diff --git a/packages/freebasic/1.8.0/run b/packages/freebasic/1.8.0/run new file mode 100644 index 0000000..610d7e6 --- /dev/null +++ b/packages/freebasic/1.8.0/run @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Run output file from compile with arguments +shift +./out "$@" diff --git a/packages/freebasic/1.8.0/test.bas b/packages/freebasic/1.8.0/test.bas new file mode 100644 index 0000000..b13a0ef --- /dev/null +++ b/packages/freebasic/1.8.0/test.bas @@ -0,0 +1 @@ +PRINT "OK" \ No newline at end of file diff --git a/readme.md b/readme.md index 1240cbe..02a3a03 100644 --- a/readme.md +++ b/readme.md @@ -340,6 +340,7 @@ Content-Type: application/json `erlang`, `forte`, `fortran`, +`freebasic`, `go`, `golfscript`, `groovy`,