710f5b14245de8fc6cdf47e281f7f83178ab5205 braney Thu Sep 20 08:55:56 2012 -0700 checking in the scripts that Fan was actually using to update decipher (#8840) diff --git src/utils/decipher/checkDecipher.sh src/utils/decipher/checkDecipher.sh index 18b6a44..1187b3a 100755 --- src/utils/decipher/checkDecipher.sh +++ src/utils/decipher/checkDecipher.sh @@ -54,36 +54,36 @@ echo "potential error in DECIPHER release watch, check release.list in ${WORKDIR}" \ | mail -s "ERROR: DECIPHER watch" ${DEBUG_EMAIL} exit 255 fi # see if anything is changing, if so, email notify, download, and build diff prev.release.list release.list >release.diff WC=`cat release.diff | wc -l` if [ "${WC}" -gt 1 ]; then echo -e "New DECIPHER update noted at:\n" \ "ftp://ftp.sanger.ac.uk/pub/\n"`comm -13 prev.release.list release.list`"/" \ | mail -s "DECIPHER update watch" ${EMAIL} -FN=`cat release.diff |grep decipher-|sed -e 's/decipher-/\tdecipher-/'|cut -f 2` +FN=`cat release.diff |grep decipher-|sed -e 's/decipher-/\tdecipher-/'|cut -f 2|tail -1` today=`date +%F` mkdir -p $today cd $today - +cp -p ../*.diff . echo "${FN}" >j.fn.gpg cat j.fn.gpg |sed -e 's/.gpg//' >j.fn.txt # prepare ftp download response file rm -f ftp.decipher.rsp echo "user ftp-decipher-dda ${ftppass} cd pub get "${FN}" bye" > ftp.decipher.rsp # download the new data file ftp -n -v -i ftp.sanger.ac.uk < ftp.decipher.rsp > ftp.log #rm -f `cat j.fn.txt`