From dae0c57aae8b90357f74530e2a326446321ecfc9 Mon Sep 17 00:00:00 2001 From: Dan Vargas <10914883+dvargas46@users.noreply.github.com> Date: Wed, 5 May 2021 05:45:33 -0500 Subject: [PATCH 1/3] pkg(rockstar-1.0.0): switch to rocky implementation (#251) --- packages/rockstar/1.0.0/build.sh | 23 +++++++---------------- packages/rockstar/1.0.0/environment | 5 ++++- packages/rockstar/1.0.0/metadata.json | 2 +- packages/rockstar/1.0.0/run | 3 ++- 4 files changed, 14 insertions(+), 19 deletions(-) diff --git a/packages/rockstar/1.0.0/build.sh b/packages/rockstar/1.0.0/build.sh index baaa9f0..646aed9 100755 --- a/packages/rockstar/1.0.0/build.sh +++ b/packages/rockstar/1.0.0/build.sh @@ -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 diff --git a/packages/rockstar/1.0.0/environment b/packages/rockstar/1.0.0/environment index 19eafb2..c2c98a9 100644 --- a/packages/rockstar/1.0.0/environment +++ b/packages/rockstar/1.0.0/environment @@ -1,2 +1,5 @@ -export ROCKSTAR_PATH=$PWD/rockstar/satriani +#!/bin/bash + +# Paths to the Java binary and Rocky jar +export ROCKSTAR_PATH=$PWD export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/rockstar/1.0.0/metadata.json b/packages/rockstar/1.0.0/metadata.json index f65bfd6..eefc675 100644 --- a/packages/rockstar/1.0.0/metadata.json +++ b/packages/rockstar/1.0.0/metadata.json @@ -1,5 +1,5 @@ { "language": "rockstar", "version": "1.0.0", - "aliases": ["rockstar", "rock"] + "aliases": ["rock", "rocky"] } diff --git a/packages/rockstar/1.0.0/run b/packages/rockstar/1.0.0/run index 7cac84f..30e68ed 100644 --- a/packages/rockstar/1.0.0/run +++ b/packages/rockstar/1.0.0/run @@ -1,3 +1,4 @@ #!/bin/bash -node $ROCKSTAR_PATH/rockstar "$@" \ No newline at end of file +# Run Rockstar file (no args or multifile execution, only stdin) +$ROCKSTAR_PATH/rockstar "$1" \ No newline at end of file From 2ae78b954b081e4c829e2102617c84fe4468795b Mon Sep 17 00:00:00 2001 From: Meghan Date: Wed, 5 May 2021 03:45:42 -0700 Subject: [PATCH 2/3] zig/0.7.1: set release most to safe so executers can still observe runtime checks (#250) --- packages/zig/0.7.1/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zig/0.7.1/compile b/packages/zig/0.7.1/compile index b666371..75ee6ba 100644 --- a/packages/zig/0.7.1/compile +++ b/packages/zig/0.7.1/compile @@ -3,4 +3,4 @@ # optimizing for small programs rename 's/$/\.zig/' "$@" # Add .zig extension -zig build-exe -O ReleaseSmall --color off --cache-dir . --global-cache-dir . --name out *.zig +zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out *.zig From 95421c9e1503d290ea27ed907076e6f88d6a66da Mon Sep 17 00:00:00 2001 From: MrExquisite <83462034+MrExquisite@users.noreply.github.com> Date: Wed, 5 May 2021 12:46:11 +0200 Subject: [PATCH 3/3] pkg(octave-6.2.0): add aliases/file extensions (#249) Octave aliases/file extensions compliant to https://octave.org/doc/v6.2.0/Introduction-to-Function-and-Script-Files.html --- packages/octave/6.2.0/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/octave/6.2.0/metadata.json b/packages/octave/6.2.0/metadata.json index 5c37dc9..ab9dbb1 100644 --- a/packages/octave/6.2.0/metadata.json +++ b/packages/octave/6.2.0/metadata.json @@ -1,5 +1,5 @@ { "language": "octave", "version": "6.2.0", - "aliases": [] + "aliases": ["matlab", "m"] }