Skip to content
Snippets Groups Projects
svn-update.sh 414 B
Newer Older
  • Learn to ignore specific revisions
  • tpylak's avatar
    tpylak committed
    #!/bin/bash
    # Author: Tomasz Pylak
    
    # this small script updates all scripts available in this directory from svn
    
    SVN=http://svncisd.ethz.ch/repos/cisd/openbis_all/trunk/source/bash
    
    tpylak's avatar
    tpylak committed
    TMP=svn-update-tmp
    mkdir $TMP
    echo Updating the scripts from $SVN
    
    for f in *.sh; do
    
    tpylak's avatar
    tpylak committed
      if [ "$f" != "$0" ]; then  
        echo Synchronizing $f...
        mv $f $TMP
        wget $SVN/$f
      fi
    done
    chmod 700 *.sh
    
    tpylak's avatar
    tpylak committed
    rm -fr $TMP
    
    tpylak's avatar
    tpylak committed
    echo SVN update done.