root / scout / make_clean.sh @ fa857318
History | View | Annotate | Download (350 Bytes)
1 | b4865319 | Alex | #!/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 |