sup: bash script for universal SCM syncing (svn, svk, cvs, darcs, etc.)
Save and drop into a location that's in your PATH (I use ~/bin, YMMV)
#!/bin/bash # sup -- a quick bash script to sync w/ various SCM tools # @author Jamie Wilkinson <jamie@tramchase.com> HERE=$(pwd) ## subversion if [ -e ".svn" ]; then svn up ## cvs elif [ -e "CVS" ]; then cvs up -dP ## darcs elif [ -e "_darcs" ]; then darcs pull --all ## svk elif [ -n "`grep $HERE ~/.svk/config`" ]; then svk up ## git elif [ -e ".git" ]; then git pull ## perforce # todo ## arch # todo ## bzr # todo fi