-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJREFS_FFG_GEN
executable file
·64 lines (50 loc) · 1.83 KB
/
JREFS_FFG_GEN
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
59
60
61
62
63
64
#!/bin/bash
set -xa
# #### 08/25/1999 ###################
# SET SHELL PROCESSING VARIABLES
# ###################################
export PS4='$SECONDS + '
date
###########################################################
# obtain unique process id (pid) and make temp directories
###########################################################
export DATA=${DATA:-${DATAROOT:?}/${jobid:?}}
mkdir -p $DATA
cd $DATA
# Run setpdy and initialize PDY variables
export cycle=${cycle:-t${cyc}z}
setpdy.sh 10
. ./PDY
##################################################
# SENDECF - Flag Events on ecFLOW
# SENDCOM - Copy Files From TMPDIR to $COMOUT
# SENDDBN - Issue DBNet Client Calls
##################################################
export SENDCOM=${SENDCOM:-YES}
export SENDECF=${SENDECF:-YES}
export SENDDBN=${SENDDBN:-YES}
export HOMErefs=${HOMErefs:-$PACKAGEROOT/refs.${refs_ver}}
export USHrefs=${USHrefs:-$HOMErefs/ush}
export EXECrefs=${EXECrefs:-$HOMErefs/exec}
###############################
# Specify NET and RUN name
###############################
export NET=${NET:-refs}
export RUN=${RUN:-refs}
# how handle DCOMROOT - hardcode backup definition, or use $envir?
export DCOMROOT=${DCOMROOT:-/lfs/h1/ops/${envir}/dcom}
#export COMIN=${COMIN:-$(compath.py -o $NET/${refs_ver})/${RUN}.${PDY}}
#export COMOUT=${COMOUT:-$(compath.py -o $NET/${refs_ver})/${RUN}.${PDY}}
export COMIN=${COMIN:-$(compath.py -o $NET/${refs_ver})/${RUN}.${PDY}}
export COMOUT=${COMOUT:-$(compath.py -o $NET/${refs_ver})/${RUN}.${PDY}}
if [ ! -f $COMOUT ] ; then
mkdir -p -m 775 $COMOUT
fi
export pgmout=OUTPUT.$$
#################################################################
# Execute the script
$HOMErefs/scripts/exrefs_ffggen.sh.ecf
#################################################################
cd ${DATAROOT}
if [ $KEEPDATA = NO ]; then rm -rf $DATA; fi
date