anki/tools/clean
2023-07-03 17:24:27 +10:00

14 lines
284 B
Bash
Executable File

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