eco2d/web/build.sh

17 lines
201 B
Bash
Raw Permalink Normal View History

2022-09-11 23:52:01 +00:00
#!/bin/bash
set -xe
pushd build_web
2022-09-12 07:07:19 +00:00
if [ -f "index.html" ]; then
rm -rf index.html
fi
2022-09-27 14:19:57 +00:00
APP=${1:-eco2d}
2022-09-12 07:07:19 +00:00
cmake --build . --parallel
2022-09-27 14:19:57 +00:00
if [ -f "$APP.html" ]; then
mv $APP.html index.html
2022-09-11 23:52:01 +00:00
fi
popd