#!/bin/sh # # $Id: makeallchives 338696 2011-09-21 19:34:41Z bollin $ # # # Creates all archives from a directory above 'ncbi' # # based on mkarchive written by # J. Epstein, 9/29/95 # modified to work in a distributed environment 3/13/98 (Friday the 13th) # -Karl Sirotkin # PATH=/bin:/usr/bin:$PATH export PATH if [ ! -d ncbi ] ; then echo must be executed above \'ncbi\' exit 1 fi if [ ! -d ncbi/build ] ; then echo must be executed above \'ncbi\' after make exit 1 fi datafiles="humrep.fsa lineages.txt sequin.hlp asn2ff.prt bstdt.val \ featdef.val gc.val makerpt.prt objprt.prt pubkey.enc seqcode.val \ sgmlbb.ent taxlist.txt BLOSUM62 KSat.flt KSchoth.flt KSgc.flt \ KShopp.flt KSkyte.flt KSpur.flt KSpyr.flt \ BLOSUM45 BLOSUM80 PAM30 PAM70 KSpcc.mat \ ecnum_ambiguous.txt ecnum_specific.txt UniVec.nhr UniVec.nin UniVec.nsq \ UniVec_Core.nhr UniVec_Core.nin UniVec_Core.nsq organelle_products.prt \ product_rules.prt" configfiles="nlmstmanrc sequinrc ncbidtrc" TOPDIR=`pwd` configdir=$TOPDIR/ncbi/config/unix datadir=$TOPDIR/ncbi/data errmsgdir=$TOPDIR/ncbi/errmsg sequindoc=$TOPDIR/ncbi/doc/sequin.htm sequinimages=$TOPDIR/ncbi/doc/images/ #delete the old archive subdir test -d archive && rm -rf archive #make sure we have timestamp file test -f ncbi/VERSION || date > ncbi/VERSION for i in sequin entrez fa2htgs asn2xml do f="" mkdir -p archive/$i/data for file in $datafiles do ln $datadir/$file archive/$i/data/ done ln ncbi/VERSION archive/$i/VERSION # cat > archive/$i/Cn3D.ReadMe < archive/$i/README.1st <>README.1st <>README.1st <>README.1st < ../$A.$platform.tar.Z gzip < ../$A.$platform.tar > ../$A.$platform.tar.gz 2>/dev/null if [ $? != 0 ] ; then /usr/ncbi/bin/gzip < ../$A.$platform.tar > ../$A.$platform.tar.gz 2>/dev/null fi rm -f ../$A.$platform.tar # cd back to archive cd .. #and remove it rm -fr $A done echo Building blast archive... BLASTDIR=blast-`cat ../ncbi/demo/.BLAST_VERSION` mkdir $BLASTDIR mkdir $BLASTDIR/bin mkdir $BLASTDIR/data mkdir $BLASTDIR/doc for file in blastall blastpgp seedtop formatdb formatrpsdb fastacmd copymat makemat impala megablast blastclust rpsblast bl2seq do cp ../ncbi/build/$file $BLASTDIR/bin done for file in $datafiles do cp ../ncbi/data/$file $BLASTDIR/data done for file in bl2seq.html blast.html blastall.html blastclust.html blastdb.html blastftp.html blastpgp.html fastacmd.html filter.html formatdb.html formatrpsdb.html history.html impala.html index.html megablast.html netblast.html rpsblast.html scoring.pdf web_blast.pl do cp ../ncbi/doc/blast/$file $BLASTDIR/doc done cp ../ncbi/VERSION $BLASTDIR tar -cpf blast.$platform.tar $BLASTDIR gzip blast.$platform.tar rm -rf $BLASTDIR # end build blast archive echo Building netblast archive... mkdir net$BLASTDIR mkdir net$BLASTDIR/data mkdir net$BLASTDIR/bin mkdir net$BLASTDIR/doc for file in $datafiles do cp ../ncbi/data/$file net$BLASTDIR/data done cp ../ncbi/doc/firewall.html net$BLASTDIR/doc cp ../ncbi/doc/blast/netblast.html net$BLASTDIR/doc cp ../ncbi/bin/blastcl3 net$BLASTDIR/bin cp ../ncbi/VERSION net$BLASTDIR tar -cpf netblast.$platform.tar net$BLASTDIR gzip netblast.$platform.tar rm -rf net$BLASTDIR echo Building wwwblast archive... mkdir blast cp -r ../ncbi/network/wwwblast/* blast find blast -type d -name CVS | xargs rm -rf find blast -type d -name Src | xargs rm -rf for file in psiblast.REAL psiblast_cs.REAL blast.REAL blast_cs.REAL wblast2.REAL wblast2_cs.REAL bl2bag.cgi nph-viewgif.cgi do cp ../ncbi/build/$file blast done mkdir -p blast/TmpGifs chmod 777 blast/TmpGifs chmod 666 blast/*.log tar -cpf wwwblast.$platform.tar blast gzip wwwblast.$platform.tar rm -rf blast exit 0