aboutsummaryrefslogtreecommitdiff
path: root/summary/clean.sh
blob: 0553bccb06d43a2357eeb8172b879582a40a13d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

to_remove=$(cat .gitignore)

rm -f $to_remove
for subdir in $(ls -l src/ | grep '^d' | awk '{print $9}'); do
	pushd src/$subdir >/dev/null
	rm -f $to_remove
	popd >/dev/null
done

clear
ls -l