source:
examples/runall
@
b84753b
Last change on this file since b84753b was 9502c50, checked in by , 13 years ago | |
---|---|
|
|
File size: 673 bytes |
Rev | Line | |
---|---|---|
[f0eb81d] | 1 | #!/bin/sh |
2 | ||
3 | # format, | |
4 | # runall clean | |
5 | # runall README | |
[9502c50] | 6 | # runall run_query |
[f0eb81d] | 7 | |
8 | progname=$(basename $0) | |
9 | ||
10 | if [ $# -eq 0 ]; then | |
11 | echo "Usage: $progname (clean|setup|run)" >&2; | |
12 | exit 1 | |
13 | fi | |
[c469edf] | 14 | |
15 | for i in `ls -1 `; do | |
[f0eb81d] | 16 | if ( file $i | grep -F directory | grep -Fq typed ); then |
17 | cd $i; | |
18 | if [ "$1" = "clean" ]; then | |
19 | printf "\n ==> CLEANING on %s\n" "$i" >& 2 ; | |
20 | rm -rf *.der *.pem creds_dump | |
21 | elif [ "$1" = "setup" ]; then | |
22 | printf "\n ==> SETUP on %s\n" "$i" >& 2; | |
[9502c50] | 23 | ./README |
[f0eb81d] | 24 | elif [ "$1" = "run" ] ; then |
25 | printf "\n ==> RUN on %s\n" "$i" ; | |
[9502c50] | 26 | ./run_query |
[f0eb81d] | 27 | fi |
28 | cd ..; | |
[c469edf] | 29 | fi |
30 | done |
Note: See TracBrowser
for help on using the repository browser.