Revision b4865319
Adding make_clean.sh to recursively clean subdirectories.
scout/make_clean.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
|
|
3 |
# Runs 'make clean' on all subfolders. |
|
4 |
# Would be better to integrate this into Makefile, but I can't seem to |
|
5 |
# make that work. -Alex |
|
6 |
|
|
7 |
for LISTING in * |
|
8 |
do |
|
9 |
if [[ -d $LISTING && (( $LISTING != "." && $LISTING != ".." )) ]] |
|
10 |
then |
|
11 |
echo "Making clean: $LISTING" |
|
12 |
cd $LISTING |
|
13 |
make clean |
|
14 |
cd .. |
|
15 |
fi |
|
16 |
done |
Also available in: Unified diff