summaryrefslogtreecommitdiffstats
path: root/cleantree.sh
blob: 2a779aeaa94be18c8eee0f426b032912939bf270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"

set -e

if ! [ -x "$basedir/awlsim-cli" -a -x "$basedir/setup.py" ]; then
	echo "basedir sanity check failed"
	exit 1
fi

cd "$basedir"
find . \( \
	\( -name '__pycache__' \) -o \
	\( -name '*.pyo' \) -o \
	\( -name '*.pyc' \) -o \
	\( -name '*$py.class' \) \
       \) -delete
rm -rf build dist
rm -f MANIFEST
bues.ch cgit interface