#!/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