townengine/bin/build.sh

8 lines
189 B
Bash
Executable File

#!/bin/env sh
if [ "$1" = "web" ]; then
emcmake cmake -B .build-web "${@:2}" && cmake --build .build-web --parallel
else
cmake -B .build "$@" && cmake --build .build --parallel
fi