2021-03-20 02:39:59 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Put instructions to run the runtime
|
2021-03-20 03:17:55 +01:00
|
|
|
export DOTNET_CLI_HOME=$PWD
|
|
|
|
|
2021-09-14 13:59:19 +02:00
|
|
|
case "${PISTON_LANGUAGE}" in
|
|
|
|
basic.net)
|
|
|
|
;&
|
|
|
|
fsharp.net)
|
|
|
|
;&
|
|
|
|
csharp.net)
|
|
|
|
shift
|
|
|
|
dotnet bin/Debug/net5.0/$(basename $(realpath .)).dll "$@"
|
|
|
|
;;
|
|
|
|
fsi)
|
|
|
|
FILENAME=$1
|
|
|
|
rename 's/$/\.fsx/' $FILENAME # Add .fsx extension
|
|
|
|
shift
|
|
|
|
dotnet $FSI_PATH $FILENAME.fsx "$@"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "How did you get here? (${PISTON_LANGUAGE})"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|