|
@@ -10,7 +10,7 @@ usage() {
|
10
|
10
|
-- \
|
11
|
11
|
"Discover all JATS tests under directory PATH." \
|
12
|
12
|
-o \
|
13
|
|
- "-f FMT Print test name in format FMT. 'jats' or 'path'."
|
|
13
|
+ "-f FMT Print test name in format FMT. 'id' or 'path'."
|
14
|
14
|
}
|
15
|
15
|
|
16
|
16
|
discover() {
|
|
@@ -27,11 +27,11 @@ discover() {
|
27
|
27
|
s_dir=$(straverse "$t_cand") || continue
|
28
|
28
|
t_apath=$(dirname "$(readlink -f "$t_cand")")
|
29
|
29
|
t_rpath=${t_apath#$s_dir/}
|
30
|
|
- s_id=$(jattool sfind -f jats "$s_dir")
|
|
30
|
+ s_id=$(jattool sfind -f id "$s_dir")
|
31
|
31
|
debug -v s_dir s_id t_apath t_rpath
|
32
|
32
|
case $Fmt in
|
33
|
33
|
path) echo "$s_dir/$t_rpath" ;;
|
34
|
|
- jats) echo "$s_id$t_rpath" ;;
|
|
34
|
+ id) echo "$s_id$t_rpath" ;;
|
35
|
35
|
esac
|
36
|
36
|
done
|
37
|
37
|
}
|
|
@@ -60,7 +60,7 @@ main() {
|
60
|
60
|
esac done
|
61
|
61
|
FindDirs=("$@")
|
62
|
62
|
case $Fmt in
|
63
|
|
- jats|path) : ;;
|
|
63
|
+ id|path) : ;;
|
64
|
64
|
*) usage -w "unknown FMT: $Fmt" ;;
|
65
|
65
|
esac
|
66
|
66
|
debug -v FindDirs Fmt
|