add clean script

This commit is contained in:
collerek
2020-08-11 15:44:05 +02:00
parent ace348e172
commit 8e19a5b127

19
scripts/clean.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/sh -e
PACKAGE="orm"
if [ -d 'dist' ] ; then
rm -r dist
fi
if [ -d 'site' ] ; then
rm -r site
fi
if [ -d 'htmlcov' ] ; then
rm -r htmlcov
fi
if [ -d "${PACKAGE}.egg-info" ] ; then
rm -r "${PACKAGE}.egg-info"
fi
find ${PACKAGE} -type f -name "*.py[co]" -delete
find ${PACKAGE} -type d -name __pycache__ -delete
find tests -type f -name "*.py[co]" -delete
find tests -type d -name __pycache__ -delete