emscripten_docker/povray_wasm/pw

20 lines
456 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
help () {
echo "Usage: ./pw [command]"
echo " "
echo "Commands:"
2022-07-22 14:50:30 +00:00
echo " build - Build the docker image with optional -f/--force"
echo " cmd - Run container with single command"
echo " compile - Run the compilation process"
}
if [[ "${1}" == "build" ]]; then
bash ./scripts/build.sh "${2}"
elif [[ "${1}" == "cmd" ]]; then
2022-07-22 14:50:30 +00:00
bash ./scripts/cmd.sh "${2}"
elif [[ "${1}" == "compile" ]]; then
bash ./scripts/compile.sh
else
help
fi