2 #------------------------------------------------------------------
4 # Name: make_tarball.sh
6 # Purpose: Make a tarball for a larsoft test release, for purpose
7 # of being shipped to grid worker.
11 # make_tarball.sh [-h|--help] [-d dir] <tarball-name>
15 # -h, --help - Print help message.
16 # -d dir - Specify location of test release (default $SRT_PRIVATE_CONTEXT
21 # 1. Resulting tar file is always created in the current directory.
23 # 2. This scripts attempts to exclude non-relevant files from the
24 # tarball, including the following.
25 # a) The tmp subdirectory.
26 # b) .svn directories.
27 # c) *.root files in the top directory.
29 # 3. This script can be invoked in the test release directory, or in
32 # Created 8-Nov-2013 H. Greenlee
34 #------------------------------------------------------------------
39 echo
"Usage: make_tarball.sh [-h|--help] [-d dir] <tarball-name>"
53 if [
x$SRT_PRIVATE_CONTEXT !=
x ]; then
54 dir=$SRT_PRIVATE_CONTEXT
56 if [
x$MRB_INSTALL !=
x ]; then
59 if [
x$dir =
x ]; then
63 while [ $# -gt 0 ];
do
82 echo
"Unrecognized option $1"
89 if [
x$tar =
x ]; then
92 echo
"Too many arguments."
101 # Make sure source directory is defined and exists.
103 if [
x$dir =
x ]; then
104 echo
"No source directory specified."
108 if [ ! -d $dir ]; then
109 echo
"Directory $dir doesn't exist."
113 # Make sure that a tarball was specified.
115 if [
x$tar =
x ]; then
116 echo
"No tarball specified."
121 # If the tarball already exists, delete it.
process_name opflash particleana ie x
then echo Invalid dCache scratch not copying back else ifdh ls
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in