mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
pkg(rockstar-1.0.0): Add rockstar 1.0.0 (#184)
Co-authored-by: Vargas, Dan <dan.vargas@frostbank.com>
This commit is contained in:
parent
58fb3ed172
commit
4776700a1b
5 changed files with 40 additions and 0 deletions
20
packages/rockstar/1.0.0/build.sh
vendored
Executable file
20
packages/rockstar/1.0.0/build.sh
vendored
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/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
|
||||
|
||||
# Pull Rockstar reference implementation project
|
||||
git clone -q "https://github.com/RockstarLang/rockstar.git" rockstar
|
||||
cd rockstar
|
||||
git reset --hard bc9eedc6acb7c0f31a425cc204dcd93cb3e68936
|
||||
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue