pkg(golfscript-1.0.0): Add golfscript 1.0.0 (#221)

This commit is contained in:
Dan Vargas 2021-04-21 20:35:33 -05:00 committed by GitHub
parent 353de20ae9
commit 2a85951426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 0 deletions

10
packages/golfscript/1.0.0/build.sh vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# golfscript was implemented as a Ruby script originally
source ../../ruby/2.5.1/build.sh
curl "http://www.golfscript.com/golfscript/golfscript.rb" -o bin/golfscript.rb
# using the shebang to run it with the right Ruby
sed -i "s|/usr/bin/|$PWD/bin/|g" bin/golfscript.rb
chmod +x bin/golfscript.rb

4
packages/golfscript/1.0.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Path to Ruby and golfscript.rb
export PATH=$PWD/bin:$PATH

View File

@ -0,0 +1,5 @@
{
"language": "golfscript",
"version": "1.0.0",
"aliases": ["golfscript"]
}

4
packages/golfscript/1.0.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# golfscript only takes code file and stdin
golfscript.rb "$1"

View File

@ -0,0 +1 @@
"OK"