Wiki

root/cobra/trunk/Tests/clean

Revision 2179, 0.5 KB (checked in by Chuck.Esterbrook, 3 years ago)

Minor fix/improvement to the "clean" script.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3find=$FIND
4if [ -z "$find" ]; then
5    find=find
6fi;
7
8directory=$1
9if [ -z "$directory" ]
10then
11    directory=.
12fi
13
14echo directory is $directory
15
16clean() {
17    $find $directory -name "$1" -exec rm {} \;
18}
19
20echo "du total:"
21du -kc $directory | tail -1
22echo "cleaning..."
23clean '*.cobra.cs'
24clean 'Native*.cs'
25clean 'test-*.cs'
26clean 'r'
27clean 'r-*'
28clean '*.exe'
29clean '*.dll'
30clean '*.pdb'
31clean '*.mdb'
32clean '*.tmp'
33clean 'cobra-exc*.html'
34svn up 720-libraries/400-other
35echo "du total:"
36du -kc $directory | tail -1
Note: See TracBrowser for help on using the browser.