source:
examples/runall
@
8bd77b5
Last change on this file since 8bd77b5 was 9335cfa, checked in by , 13 years ago | |
---|---|
|
|
File size: 666 bytes |
Rev | Line | |
---|---|---|
[f0eb81d] | 1 | #!/bin/sh |
2 | ||
3 | # format, | |
4 | # runall clean | |
[9335cfa] | 5 | # runall setup |
6 | # runall run | |
[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.