Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JPrintHeaderFromFilelist.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5script=${0##*/}
6
7# ------------------------------------------------------------------------------------------
8#
9# Auxiliary script to print Monte Carlo header.
10#
11# ------------------------------------------------------------------------------------------
12
13if [ -z $JPP_DIR ]; then
14 echo "Variable JPP_DIR undefined."
15 exit
16fi
17
18source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
19
20set_variable WORKDIR ${TMPDIR:-/tmp}/
21
22if do_usage $*; then
23 usage "$script <input file>"
24fi
25
26if (( $# != 1 )); then
27 fatal "Wrong number of arguments."
28fi
29
30set_variable INPUT_FILE $1
31
32if [[ ${INPUT_FILE##*.} == "files" ]]; then
33 JPrintHeader -f ${INPUT_FILE}
34else
35 JPrintHeader -f "`cat ${INPUT_FILE}`"
36fi