piston/packages/mono/6.12.0/compile

17 lines
340 B
Plaintext
Raw Normal View History

2021-03-13 07:53:00 +01:00
#!/bin/bash
2021-09-09 20:20:01 +02:00
case "${PISTON_LANGUAGE}" in
csharp)
rename 's/$/\.cs/' "$@" # Add .cs extension
csc -out:out *.cs
;;
basic)
rename 's/$/\.vb/' "$@" # Add .vb extension
vbnc -out:out *.vb
;;
*)
echo "How did you get here? (${PISTON_LANGUAGE})"
exit 1
;;
esac