Add a script to clean build folder
This commit is contained in:
parent
9f5b7e79cc
commit
ec9cf4a821
13
tools/clean
Executable file
13
tools/clean
Executable 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
|
Loading…
Reference in New Issue
Block a user