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