-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-ccf-odf.sh
executable file
·58 lines (43 loc) · 1.14 KB
/
make-ccf-odf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
######################################################################
# run odfingest and ccf
dir=$1
here=`pwd`
cd $dir
######################################################################
# make ccf
echo -e "\nStarting CCF creation :\n"
cifbuild withccfpath=no analysisdate=now category=XMMCCF calindexset=$SAS_CCF fullpath=yes verbosity=4
if [[ $? -ne 0 ]]
then
echo -e "\n** error: cifbuild failed !"
echo -e "*** error in script: $0\n"
cd $startdir
exit 1
fi
echo -e "\nCCF file : "
ls ${SAS_CCF}
if [[ $? -ne 0 ]]
then
echo -e "\n** error: missing ccf: ${SAS_CCF} !"
echo -e "*** error in script: $0\n"
cd $startdir
exit 1
fi
######################################################################
# make odf
echo -e "\nStarting ODF ingestion :\n"
odfingest odfdir=$SAS_ODF outdir=$SAS_ODF verbosity=4
if [[ $? -ne 0 ]]
then
echo -e "\n** error: odfingest failed !"
echo -e "*** error in script: $0\n"
cd $startdir
exit 1
fi
echo -e "\nODF file : "
ls ${SAS_ODF}/*SUM.SAS
######################################################################
# exit
cd $here
echo -e "\n$0 in $obsid done!"
exit 0