source:
trunk/technical/common/build/clean_dirs.sh@
610
Last change on this file since 610 was 610, checked in by , on Sep 17, 2002 at 11:50:26 AM | |
---|---|
File size: 355 bytes |
Rev | Line | |
---|---|---|
[610] | 1 | #!/bin/bash |
2 | # loescht alle Unterverzeichnisse, in die unpack_srpm.sh die pakete | |
3 | # entpackt hat | |
4 | # $Id: clean_dirs.sh,v 1.1 2002/09/17 09:50:26 pstorz Exp $ | |
5 | ||
6 | if [ -z "$1" ]; then | |
7 | echo "usage: $0 directory" | |
8 | exit 1 | |
9 | fi | |
10 | ||
11 | DIR=$1; | |
12 | echo dir is $DIR; | |
13 | cd $DIR; | |
14 | pwd; | |
15 | for i in `cd $DIR; find * -type d -maxdepth 1 |grep -v CVS`; do rm -rvf $i;done | |
16 |
Note:
See TracBrowser
for help on using the repository browser.