mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 11:36:27 +02:00
pkg(rockstar-1.0.0): switch to rocky implementation (#251)
This commit is contained in:
parent
09d32a521e
commit
dae0c57aae
4 changed files with 14 additions and 19 deletions
23
packages/rockstar/1.0.0/build.sh
vendored
23
packages/rockstar/1.0.0/build.sh
vendored
|
@ -1,20 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Download and install NodeJS
|
||||
curl "https://nodejs.org/dist/v15.10.0/node-v15.10.0-linux-x64.tar.xz" -o node.tar.xz
|
||||
tar xf node.tar.xz --strip-components=1
|
||||
rm node.tar.xz
|
||||
export PATH=$PWD/bin:$PATH
|
||||
# Using the Rocky implementation of the Rockstar spec
|
||||
|
||||
# Pull Rockstar reference implementation project
|
||||
git clone -q "https://github.com/RockstarLang/rockstar.git" rockstar
|
||||
cd rockstar
|
||||
git reset --hard bc9eedc6acb7c0f31a425cc204dcd93cb3e68936
|
||||
# Download Java
|
||||
source ../../java/15.0.2/build.sh
|
||||
|
||||
# Install Satriani dependencies
|
||||
cd satriani
|
||||
npm install
|
||||
cd ../..
|
||||
|
||||
# Suppress "(program returned no output)" output at the end of each program
|
||||
sed -i 's/console.log(result ? result : "(program returned no output)");/if (result) console.log(result);/g' rockstar/satriani/rockstar.js
|
||||
# Download Rocky and the wrapper
|
||||
curl -LO "https://github.com/gaborsch/rocky/raw/master/rocky.jar"
|
||||
curl -LO "https://github.com/gaborsch/rocky/raw/master/rockstar"
|
||||
chmod +x rockstar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue