Add a script to clean build folder

This commit is contained in:
Damien Elmes 2023-07-03 16:24:45 +10:00
parent 9f5b7e79cc
commit ec9cf4a821

13
tools/clean Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
#
# Remove most things from the build folder, to test a clean build. Keeps
# the download folder, and optionally node_modules/pyenv.
set -e
shopt -s extglob
if [ "$1" == "keep-env" ]; then
rm -rf out/!(node_modules|pyenv|download)
else
rm -rf out/!(download)
fi