#!/bin/sh # # $Id: makeallchives,v 1.74 2004/06/16 19:17:52 beloslyu Exp $ # # # 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" 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 blast netblast 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 # build wwwblast archive # cd archive && cvs export -d blast -r HEAD distrib/network/wwwblast && cd .. 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