mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
Updated to Matl 22.7.4
This commit is contained in:
parent
c1ed7a7118
commit
57076ee176
5 changed files with 33 additions and 0 deletions
13
packages/MATL/22.7.4/run
vendored
Normal file
13
packages/MATL/22.7.4/run
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# get file as first argument
|
||||
file="$1"
|
||||
|
||||
# remove the file from $@
|
||||
shift
|
||||
|
||||
# use the rest of the arguments as stdin
|
||||
stdin=`printf "%s\n" "$@"`
|
||||
|
||||
# pass stdin into octave which will run MATL
|
||||
echo "$stdin" | octave -W -p "$MATL_PATH" --eval "matl -of '$file'"
|
Loading…
Add table
Add a link
Reference in a new issue