-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathqtl
More file actions
executable file
·58 lines (51 loc) · 1.54 KB
/
qtl
File metadata and controls
executable file
·58 lines (51 loc) · 1.54 KB
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
#!/usr/bin/env bash
set -e
set -u
source $(dirname $0)/../libexec/environ.sh
sep="================================================================"
usage() {
echo """
qtl: Quality Time Lines
$sep
USAGE: qtl [COMMAND] [OPTIONS]...
$sep
COMMAND: the command to run, one of:
histogram Run the timeline histogramming jobs (Step 1)
analysis Analyze the histograms and generate timelines (Step 2)
physics Generate and analyze physics QA timelines (Step 2)
error Scan for errors in Slurm logs (for Step 1)
reheat Reproduce a data file, e.g., to rerun postprocessing
xtrain Cross check run list from trains and DSTs
OPTIONS: Each command has its own set of options; run a command with no
additional options to see usage for that command.
ADDITIONAL OPTIONS:
-v, --version Print version number
-h, --help Show this message
""" >&2
}
if [ $# -eq 0 ]; then
usage
exit 101
fi
cmd=$1
shift
case $cmd in
hi*) exec $TIMELINESRC/bin/qtl-histogram "$@" ;;
an*) exec $TIMELINESRC/bin/qtl-analysis "$@" ;;
ph*) exec $TIMELINESRC/bin/qtl-physics "$@" ;;
er*) exec $TIMELINESRC/bin/qtl-error "$@" ;;
re*) exec $TIMELINESRC/bin/qtl-reheat "$@" ;;
xt*) exec $TIMELINESRC/bin/qtl-xtrain "$@" ;;
-v|--version)
echo $(mvn -q help:evaluate -Dexpression=project.version -DforceStdout -f $TIMELINESRC/pom.xml || echo "UNKNOWN")
exit 0
;;
-h|--help)
usage
exit 101
;;
*)
printError "unknown command '$cmd'"
exit 100
;;
esac