mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 05:26:28 +02:00
pkg(golfscript-1.0.0): Add golfscript 1.0.0
This commit is contained in:
parent
7191bc063c
commit
925125daca
5 changed files with 24 additions and 0 deletions
10
packages/golfscript/1.0.0/build.sh
vendored
Executable file
10
packages/golfscript/1.0.0/build.sh
vendored
Executable 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
4
packages/golfscript/1.0.0/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Path to Ruby and golfscript.rb
|
||||
export PATH=$PWD/bin:$PATH
|
5
packages/golfscript/1.0.0/metadata.json
vendored
Normal file
5
packages/golfscript/1.0.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "golfscript",
|
||||
"version": "1.0.0",
|
||||
"aliases": ["golfscript"]
|
||||
}
|
4
packages/golfscript/1.0.0/run
vendored
Normal file
4
packages/golfscript/1.0.0/run
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# golfscript only takes code file and stdin
|
||||
golfscript.rb "$1"
|
1
packages/golfscript/1.0.0/test.golfscript
vendored
Normal file
1
packages/golfscript/1.0.0/test.golfscript
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
"OK"
|
Loading…
Add table
Add a link
Reference in a new issue