]>
Commit | Line | Data |
---|---|---|
5e377ba0 | 1 | #!/bin/sh |
2 | # $Id$ | |
3 | # | |
4 | # by I. Hrivnacova, IPN Orsay | |
5 | ||
6 | # Script to compare existing transformation/svmap data files | |
7 | # with generated ones. | |
8 | # | |
9 | # Usage: compare_data which_data | |
10 | # which_data = transform, svmap | |
11 | ||
12 | if [ $# != 1 ] ; then | |
13 | echo " Usage: compare_data which_data" | |
14 | echo " which_data = transform, svmap" | |
15 | exit 1 | |
16 | fi | |
17 | ||
18 | if [ "$1" != "transform" -a "$1" != "svmap" ] ; then | |
19 | echo " Usage: reset_data which_data" | |
20 | echo " which_data = transform, svmap" | |
21 | exit 1 | |
22 | fi | |
23 | ||
24 | DATATYPE=$1 | |
25 | ||
92297cf8 | 26 | for builder in st1 st1V2 st2 st2V2 slat trigger |
5e377ba0 | 27 | do |
28 | if [ -f $DATATYPE"_"$builder".dat.out" ] ; then | |
29 | echo "Comparing $DATATYPE"_"$builder".dat $DATATYPE"_"$builder.dat.out ... | |
30 | diff $DATATYPE"_"$builder.dat $DATATYPE"_"$builder.dat.out | |
31 | fi | |
32 | done |