src/utils/qa/copyExtSeqRows.csh 1.7
1.7 2009/05/21 22:54:35 ann
used multi-line echo trick
Index: src/utils/qa/copyExtSeqRows.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/copyExtSeqRows.csh,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/utils/qa/copyExtSeqRows.csh 14 May 2009 21:44:45 -0000 1.6
+++ src/utils/qa/copyExtSeqRows.csh 21 May 2009 22:54:35 -0000 1.7
@@ -34,21 +34,21 @@
# usage statement
if ( $#argv != 4 ) then
echo
- echo " Automatically copies appropriate rows from the extFile and seq tables"
- echo " from hgwdev to hgwbeta. (You may want to send an email to browser-qa"
- echo " telling them 'hands off' the extFile and seq tables for now.)"
+ echo " Automatically copies appropriate rows from the extFile and seq tables\
+ from hgwdev to hgwbeta. (You may want to send an email to browser-qa\
+ telling them 'hands off' the extFile and seq tables for now.)"
echo
echo " usage: db [file | fileList] [new | update] [setup | real]"
echo
- echo " Accepts either one fileName or a file containing a list of fileNames."
- echo " Does not accept wildcards (* or %)."
- echo " Use entire path to file like so: /gbdb/db/.../fileName."
- echo " If this is a data update to a track, even if the file names are unique,"
- echo " run with 'update', else run with 'new'.\n"
- echo " This script must be run TWICE: first run with 'setup',"
- echo " then review the output, if it's OK, then run again with 'real'.\n"
+ echo " Accepts either one fileName or a file containing a list of fileNames.\
+ Does not accept wildcards (* or %).\
+ Use entire path to file like so: /gbdb/db/.../fileName.\
+ If this is a data update to a track, even if the file names are unique,\
+ run with 'update', else run with 'new'.\n\
+ This script must be run TWICE: first run with 'setup',\
+ then review the output, if it's OK, then run again with 'real'.\n"
exit 1
else
set db=$argv[1]
set filelist=$argv[2]
@@ -70,20 +70,20 @@
exit 1
endif
if ( "new" != $type && "update" != $type ) then
- echo "\n ERROR: Third argument must specify if this is 'new' data or a data"
- echo " 'update'. If the track already exists, and these data will write"
- echo " over what's there (even if the old/new file names are different)"
- echo " choose 'update'. Otherwise, choose 'new'.\n"
+ echo "\n ERROR: Third argument must specify if this is 'new' data or a data\
+ 'update'. If the track already exists, and these data will write\
+ over what's there (even if the old/new file names are different)\
+ choose 'update'. Otherwise, choose 'new'.\n"
$0
exit 1
endif
if ( "setup" != $run && "real" != $run ) then
- echo "\n ERROR: Fourth argument must specify if this is a setup run or a real"
- echo " run. Run it for the first time as 'setup', then review the output."
- echo " If everything looks okay, run it again as 'real'.\n"
+ echo "\n ERROR: Fourth argument must specify if this is a setup run or a real\
+ run. Run it for the first time as 'setup', then review the output.\
+ If everything looks okay, run it again as 'real'.\n"
$0
exit 1
endif
@@ -110,13 +110,13 @@
# the db name (or hgFixed) is *not* embedded in the file path.
foreach oneFile ( $files )
ls -l $oneFile | egrep "$db|hgFixed" > /dev/null
if ( $status ) then
- echo "\n ERROR: one or more of the file name(s) you provided either doesn't"
- echo " exist or the file path doesn't contain the database name you"
- echo " provided. Are you sure you gave the correct file name and path?"
- echo " Your database name: $db"
- echo " Your bad file name: $oneFile\n"
+ echo "\n ERROR: one or more of the file name(s) you provided either doesn't\
+ exist or the file path doesn't contain the database name you\
+ provided. Are you sure you gave the correct file name and path?\
+ Your database name: $db\
+ Your bad file name: $oneFile\n"
exit 1
else
echo $oneFile >> XXsetupFileListXX
endif
@@ -129,9 +129,9 @@
ls $oneFile | egrep 'maf$|fa$|fasta$' > /dev/null
if ( $status ) then
echo "\n ERROR: one or more of the file(s) in your list are not of the"
echo " expected type. Typical file types in the extFile table end in "
- echo " .maf or .fa (or somtimes .fasta)\n"
+ echo " .maf or .fa (or sometimes .fasta)\n"
echo " Your bad file: $oneFile\n"
exit 1
endif
end