2 #------------------------------------------------------------------
4 # Purpose: Prints a canonicalized expansion of an fcl configuration
7 # Usage: expand_fcl.sh <fcl-file>
11 # 1. The larsoft environment must be initialized, in particular:
13 # a) The lar executable must be on the execution path.
15 # b) The fcl file search path $FHICL_FILE_PATH must be
16 # properly initialized.
18 # Created: H. Greenlee, 30-Jul-2013
20 #------------------------------------------------------------------
29 if [ x$fcl = x ]; then
30 echo "Usage: expand_fcl.sh <fcl-file>"
34 # Use lar executable to expand the fcl script.
35 # Get rid of art boilerplate and redirect to standard output.
37 export ART_DEBUG_CONFIG=1
38 lar -c $fcl 2>&1 >/dev/null | sed -n '2,$p'