1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 02:27:10 +03:00
mal/haxe/run
Joel Martin 2d76e8776c Generic <impl>_MODE setting. Add travis modes.
For implementations that support different compile/run modes, the
convention is not <impl_name>_MODE=<mode>. This is passed through to
make/docker commands. Fix Makefiles and run scripts to listen to the
respective *_MODE variables.

Enable travis builds/tests for 4 Haxe modes and 2 python modes.
2017-09-11 17:54:26 -05:00

9 lines
389 B
Bash
Executable File

#!/bin/bash
case ${haxe_MODE:-neko} in
neko) exec neko $(dirname $0)/${STEP:-stepA_mal}.n "${@}" ;;
python) exec python3 $(dirname $0)/${STEP:-stepA_mal}.py "${@}" ;;
js) exec node $(dirname $0)/${STEP:-stepA_mal}.js "${@}" ;;
cpp) exec $(dirname $0)/cpp/${STEP:-stepA_mal} "${@}" ;;
*) echo "Invalid haxe_MODE: ${haxe_MODE}"; exit 2 ;;
esac