Changeset 93 for drbl-biocluster


Ignore:
Timestamp:
Jul 8, 2009, 12:09:50 PM (15 years ago)
Author:
jazz
Message:
  • 新增清除暫存的機制
File:
1 edited

Legend:

Unmodified
Added
Removed
  • drbl-biocluster/BioCluster_Setup.sh

    r92 r93  
    66fi
    77
     8case "$1" in
     9  clean)
     10    sudo rm -rf add_path ape_2.3-1.tar.gz biocLite.R BioConductor.R blast gee_4.13-13.tar.gz GPG-KEY-DRBL lattice_0.17-25.tar.gz mito.nt.gz mpiblast-1.5.0-pio mpiBLAST-1.5.0-pio.tgz mpich2-1.0.8p1 mpich2-1.0.8p1.tar.gz nlme_3.1-92.tar.gz Rmpi_0.5-7.tar.gz torque-2.3.6 torque-2.3.6.tar.gz wwwblast-2.2.20-ia32-linux.tar.gz
     11    exit 0;
     12    ;;
     13  install)
     14    biocluster_setup
     15    ;;
     16  *)
     17    echo "Usage: $0 [ install | clean ]"
     18    ;;
     19esac
     20
     21biocluster_setup()
     22{
    823#####################################################################
    924# 以下為基本程式設計與生資相關自由軟體
     
    147162fi
    148163
    149 wget ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/mito.nt.gz
     164if [ ! -e mito.nt.gz ]; then
     165  wget ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/mito.nt.gz
     166fi
    150167
    151 cat > add_path << EOF
     168if [ ! -e add_path ]; then
     169  cat > add_path << EOF
    152170echo "export PATH=\\\$PATH:/opt/torque/bin:/opt/mpich2/bin:/opt/mpiblast/bin" >> /etc/profile
    153171EOF
    154 sudo sh add_path
    155 
     172  sudo sh add_path
     173fi
    156174#####################################################################
    157175# 電腦叢集的網頁監控機制
     
    177195  sudo /opt/drbl/sbin/drblpush -i
    178196fi
     197}
Note: See TracChangeset for help on using the changeset viewer.