4 # ======================================================================
13 ( cd / ; /bin/pwd -P ) >/dev/null 2>&1
14 if (( $? == 0 )); then
18 thisdir=`cd ${reldir} && /bin/pwd ${pwd_P_arg}`
21 ## perl -wapi\~ -f fix-header-locs.pl "${F}" >/dev/null 2>&1 && rm -f "${F}~"
26 # Optionally fix whitespace
27 (( ${fix_whitespace:-0} )) && ed "$F" < fix-whitespace.ed > /dev/null 2>&1
29 perl -wapi\~ -f ${thisdir}/fix_fcl.pl "${F}" >/dev/null 2>&1 && rm -f "${F}~"
32 # ======================================================================
34 getopt -T >/dev/null 2>&1
35 if (( $? != 4 )); then
36 echo "ERROR: GNU getopt required! Check SETUP_GETOPT and PATH." 1>&2
40 TEMP=`getopt -n "$prog" -o a --long fix-whitespace -- "${@}"`
53 echo "Bad argument \"$OPT\"" 1>&2
63 # ======================================================================
64 # Run scripts to update
66 TMP=`mktemp -t DealWithGaus.sh.XXXXXX`
67 trap "rm $TMP* 2>/dev/null" EXIT
70 for F in `find $TOP -name "*.fcl" -print`; do