3
# Routine to copy all of the necessary results.dat files
4
# into the appropriate location so gen_grid_jobs has necessary
8
# First we need to get into the main directory
10
if [[ ! -d ./bin ]]; then
12
if [[ ! -d ./bin ]]; then
13
echo "Error: store must be executed from the main, or bin directory"
17
if [[ ! -d SubProcesses ]]; then
18
echo "Error: SubProcesses directory not found"
22
if [[ "$1" == "" ]]; then
23
echo 'Enter you must specify a name to store files under. (eg restore_data TeV)'
28
if [[ "$1" == "" ]]; then
29
echo 'Enter you must specify a name to store files under. (eg restore_data TeV)'
34
cp $1_results.dat results.dat >& /dev/null
35
for i in `cat subproc.mg` ; do
38
rm -f ftn25 ftn26 >& /dev/null
39
cp $1_results.dat results.dat >& /dev/null
41
if [[ ! -d $k ]]; then
45
for j in $1_results.dat ; do
50
for j in $1_ftn26.gz ; do
52
rm -f ftn26 >& /dev/null
53
rm -f $1_ftn26 >& /dev/null