3 # make a distribution tarball for larsoft_data, uboone_data, etc.
8 Usage: $(basename ${0}) [-
h]
9 $(basename ${0}) <
options> <product_topdir> <product_name> <product_version>
17 product_topdir Top
directory for relocatable-UPS products area.
18 product_name Product
name,
e.g., larsoft_data
19 product_version Product
version,
e.g., v0_03_01
23 $(basename ${0}) is suitable
for use with larsoft_data, not other products.
28 ########################################################################
42 shift `expr $OPTIND - 1`
49 working_dir=$(/
bin/pwd)
50 dotver=`echo ${product_version} | sed -
e 's/_/./g' | sed -
e 's/^v//'`
52 if [ -
z ${product_topdir} ]
58 if [ -
z ${product_name} ]
63 if [ -
z ${product_version} ]
69 [[ -
n "$working_dir" ]] && \
70 [[ -d
"${working_dir}" ]] && \
71 [[ -
w "${working_dir}" ]] || \
72 { echo
"ERROR: Could not write to specified working directory \"${working_dir}\"." 1>&2;
exit 1; }
74 [[ -d ${product_topdir}/${product_name}/${product_version} ]] || \
75 { echo
"ERROR: ${product_topdir}/${product_name}/${product_version} is not a directory." 1>&2;
exit 1; }
76 [[ -d ${product_topdir}/${product_name}/${product_version}.version ]] || \
77 { echo
"ERROR: ${product_topdir}/${product_name}/${product_version}.version is not a directory." 1>&2;
exit 1; }
81 tar cjf ${working_dir}/${product_name}-${dotver}-noarch.tar.bz2 \
82 ${product_name}/${product_version}.version \
83 ${product_name}/${product_version}
85 ls -l ${product_name}-${dotver}-noarch.tar.bz2 ||
exit 1
process_name opflash particleana ie ie ie z
*usage exit esac done shift expr $OPTIND OPTIND
process_name opflash particleana ie x
esac done echo Signal files are
then echo Invalid dCache scratch not copying back else ifdh ls
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
do case in h help echo Usage
then echo Work directory not specified exit fi echo Work directory
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 echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker options