source: examples/runall @ b84753b

mei_rt2mei_rt2_fix_1rt2
Last change on this file since b84753b was 9502c50, checked in by Mei <mei@…>, 13 years ago

1) rename examples' rr to run_query
2) updated some doc
3) add decode to creddy --roles and creddy --display --show so it will

show more useful attribute rule string

4) stub in the python script in one of the example directory

  • Property mode set to 100755
File size: 673 bytes
Line 
1#!/bin/sh
2
3# format,
4#   runall clean
5#   runall README
6#   runall run_query
7
8progname=$(basename $0)
9
10if [ $# -eq 0 ]; then
11    echo "Usage: $progname (clean|setup|run)" >&2;
12    exit 1
13fi
14
15for i in `ls -1 `; do
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;
23           ./README
24       elif [ "$1" = "run" ] ; then
25           printf "\n ==> RUN on %s\n" "$i" ;
26           ./run_query
27       fi 
28       cd ..;
29   fi
30done
Note: See TracBrowser for help on using the repository browser.