Project

General

Profile

Revision b4865319

IDb486531971e42a4b30ecd161e1ee323a71df24c3
Parent 07121480
Child e117f879

Added by Alex Zirbel about 11 years ago

Adding make_clean.sh to recursively clean subdirectories.

View differences:

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