4 # ======================================================================
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
29 perl -wapi\~ -f ${thisdir}/fix_headers_art211.pl
"${F}" >/
dev/
null 2>&1 && rm -f
"${F}~"
32 function cmake_file() {
35 # Optionally fix whitespace
38 perl -wapi\~ -f ${thisdir}/fix_cmake_art211.pl
"${F}" >/
dev/
null 2>&1 && rm -f
"${F}~"
41 # ======================================================================
44 if (( $? != 4 )); then
45 echo
"ERROR: GNU getopt required! Check SETUP_GETOPT and PATH." 1>&2
49 TEMP=`getopt -
n "$prog" -o
a --
long all-lumi-cases --
long one-
file: --
long no-fix-pset --
"${@}"`
66 echo
"Bad argument \"$OPT\"" 1>&2
81 # ======================================================================
82 # Run scripts to update
84 TMP=`mktemp -t update_sources.sh.XXXXXX`
85 trap
"rm $TMP* 2>/dev/null" EXIT
87 if [[ -
n "${file}" ]]; then
88 if ! [[ -
r "${file}" ]]; then
89 echo
"ERROR: ${file} does not exist or is not readable." 1>&2
95 for TOP in ${TOP_LIST};
do
96 echo
"checking ${TOP}"
100 for F in `find
"${TOP:-.}" -
name CMakeLists.txt -
print`;
do
process_name opflash particleana ie ie ie z
do one_file $F done echo for F in find $TOP name CMakeLists txt print
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
then echo Cowardly refusing to create a new FHiCL file with the same name as the original one('${SourceName}')." >&2 exit 1 fi echo "'$
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
then echo File list $list not found else cat $list while read file do echo $file sed s
do case in fix whitespace fix_whitespace