aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/cleantree.sh
blob: 46289bf1a6c0963e8c04ad57388762629dd7516e (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="$(realpath -e "$0" | xargs dirname)"
rootdir="$basedir/.."

set -e

if ! [ -x "$rootdir/partmgr-gui" -a -x "$rootdir/setup.py" ]; then
	echo "rootdir sanity check failed"
	exit 1
fi

cd "$rootdir"
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