Skip to content
Snippets Groups Projects
svn-update.sh 308 B
Newer Older
  • Learn to ignore specific revisions
  • tpylak's avatar
    tpylak committed
    #!/bin/bash
    # Author: Tomasz Pylak
    
    tpylak's avatar
    tpylak committed
    # Updates all scripts available in the current directory to the version found in SVN.
    
    SVN=svncisd.ethz.ch/repos/cisd/openbis_all/trunk/source/bash
    
    kohleman's avatar
    kohleman committed
    cd ~openbis/bin
    
    felmer's avatar
    felmer committed
    wget -nv -r -l1 -A.{sh,txt} http://$SVN/
    
    kohleman's avatar
    kohleman committed
    mv $SVN/* .
    
    tpylak's avatar
    tpylak committed
    chmod 700 *.sh
    
    kohleman's avatar
    kohleman committed
    RM=`echo $SVN | cut -d / -f1`
    rm -rf $RM