5 unsetenv CWB_MERGE_LABEL
6 unsetenv CWB_CHUNK_START
7 unsetenv CWB_CHUNK_STOP
8 unsetenv CWB_PP_OPTIONS
10 if ((( $1 ==
'' ))) then
12 echo
"CWB_MERGE_LABEL not defined"
16 setenv CWB_MERGE_LABEL $1
19 if ((( $2 ==
'' ))) then
21 echo
"CWB_CHUNK_START not defined"
25 setenv CWB_CHUNK_START $2
28 if ((( $3 ==
'' ))) then
30 echo
"CWB_CHUNK_STOP not defined"
34 setenv CWB_CHUNK_STOP $3
37 if ((( $4 !=
'merge' ) && ( $4 !=
'veto' ) && ( $4 !=
'cut' ) && ( $4 !=
'report' ) && ( $4 !=
'all' ) &&( $4 !=
'' ))) then
39 echo \
'$4\' "is a wrong cwb pp option"
41 echo "available options"
42 echo " no options -> all (default)"
43 echo " merge : execute merge"
44 echo " veto : execute veto"
45 echo " cut : execute cut"
46 echo " report: execute report"
47 echo " all : execute merge+veto+cut+report"
51 if ((( $4 == '' ))) then
52 setenv CWB_PP_OPTIONS "all"
54 setenv CWB_PP_OPTIONS $4
58 if ((( $CWB_PP_OPTIONS == "merge" ) || ( $CWB_PP_OPTIONS == "all" ))) then
59 ${CWB_SCRIPTS}/cwb_merge.csh $CWB_MERGE_LABEL '--nthreads 10
'
63 if ((( $CWB_PP_OPTIONS == "veto" ) || ( $CWB_PP_OPTIONS == "all" ))) then
64 ${CWB_SCRIPTS}/cwb_setveto.csh $CWB_MERGE_LABEL
68 if ((( $CWB_PP_OPTIONS == "cut" ) || ( $CWB_PP_OPTIONS == "all" ))) then
69 ${CWB_SCRIPTS}/cwb_setcuts.csh $CWB_MERGE_LABEL.V_hvetoLH '--unique
true'
73 if ((( $CWB_PP_OPTIONS == "report" ) || ( $CWB_PP_OPTIONS == "all" ))) then
74 @ K = $CWB_CHUNK_START
75 while ($K <= $CWB_CHUNK_STOP)
76 set KK=`echo $K | awk '{ printf
"%02d\n", $0 }
'`
77 if($K == $CWB_CHUNK_START) then
81 ${CWB_SCRIPTS}/cwb_setifar.csh $CWB_MERGE_LABEL.V_hvetoLH.C_U.S_bin1_cut '--tsel
bin1_cut&&O2_K
'$KK'_cut --label same --file
far_bin1_cut_file[
'$KK'] --mode exclusive
'
87 ${CWB_SCRIPTS}/cwb_report.csh $CWB_MERGE_LABEL.V_hvetoLH.C_U.S_bin1_cut create
91 unsetenv CWB_MERGE_LABEL
92 unsetenv CWB_CHUNK_START
93 unsetenv CWB_CHUNK_STOP
94 unsetenv CWB_PP_OPTIONS
98 ps T | grep root | awk '{print $1}
' | xargs kill -9
TString far_bin1_cut_file[100]