pkg(golfscript-1.0.0): Add golfscript 1.0.0 (#221)
This commit is contained in:
parent
353de20ae9
commit
2a85951426
|
@ -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
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Path to Ruby and golfscript.rb
|
||||||
|
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "golfscript",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"aliases": ["golfscript"]
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# golfscript only takes code file and stdin
|
||||||
|
golfscript.rb "$1"
|
|
@ -0,0 +1 @@
|
||||||
|
"OK"
|
Loading…
Reference in New Issue