src/utils/qa/makeUniProtFile.csh 1.2

1.2 2009/05/14 19:40:48 ann
a little clean-up with the file names
Index: src/utils/qa/makeUniProtFile.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/makeUniProtFile.csh,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 4 -r1.1 -r1.2
--- src/utils/qa/makeUniProtFile.csh	14 May 2009 18:51:15 -0000	1.1
+++ src/utils/qa/makeUniProtFile.csh	14 May 2009 19:40:48 -0000	1.2
@@ -55,18 +55,23 @@
 
 # now add the organism name to every row
 cat $db.rawDataForUniProt.sorted | sed -e 's/$/ '"$org"'/g' > $db.uniProtToUcscGenes.txt
 
-# clean up old files
-rm $db.rawDataForUniProt*
+# make the new directory and copy the file there
+mkdir -p /usr/local/apache/htdocs/goldenPath/$db/UCSCGenes
+cp $db.uniProtToUcscGenes.txt /usr/local/apache/htdocs/goldenPath/$db/UCSCGenes/uniProtToUcscGenes.txt
 
 # how big is the file
 set num=`cat $db.uniProtToUcscGenes.txt | wc -l`
 
 # explain the output to the user
 echo "\nSUCCESS!\n"
-echo "Here's a sample of the $num line file you just created (expect: UniProtId ucscGeneId orgName)"
+echo "Here's a sample of the $num line file you just created"
+echo " (expect: UniProtId ucscGeneId orgName)"
 head $db.uniProtToUcscGenes.txt
 echo " \nAsk for a push of your new file to hgdownload:\n"
-echo " /usr/local/apache/htdocs/goldenPath/$db/UCSCGenes/$db.uniProtToUcscGenes.txt\n"
+echo " /usr/local/apache/htdocs/goldenPath/$db/UCSCGenes/uniProtToUcscGenes.txt"
+
+# clean up old files (except the real one)
+rm $db.rawDataForUniProt*
 
 exit 0