Skip to content

Commit 919076e

Browse files
authored
Merge pull request #603 from lorypelli/matl-22.7.4
Updated to `Matl 22.7.4`
2 parents e458665 + 57076ee commit 919076e

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

Diff for: packages/MATL/22.7.4/build.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
# build octave as dependency
4+
source ../../octave/6.2.0/build.sh
5+
6+
# curl MATL 22.7.4
7+
curl -L "https://github.com/lmendo/MATL/archive/refs/tags/22.7.4.tar.gz" -o MATL.tar.xz
8+
tar xf MATL.tar.xz --strip-components=1
9+
rm MATL.tar.xz

Diff for: packages/MATL/22.7.4/environment

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
# Path to MATL binary
4+
export PATH=$PWD/bin:$PATH
5+
export MATL_PATH=$PWD

Diff for: packages/MATL/22.7.4/metadata.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"language": "matl",
3+
"version": "22.7.4",
4+
"aliases": []
5+
}

Diff for: packages/MATL/22.7.4/run

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# get file as first argument
4+
file="$1"
5+
6+
# remove the file from $@
7+
shift
8+
9+
# use the rest of the arguments as stdin
10+
stdin=`printf "%s\n" "$@"`
11+
12+
# pass stdin into octave which will run MATL
13+
echo "$stdin" | octave -W -p "$MATL_PATH" --eval "matl -of '$file'"

Diff for: packages/MATL/22.7.4/test.matl

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
'OK'

0 commit comments

Comments
 (0)