Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /admin/switch-all-svn-https.sh
ViewVC logotype

View of /admin/switch-all-svn-https.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2940 - (download) (as text) (annotate)
Wed Feb 13 15:05:08 2008 UTC (11 years, 5 months ago) by blume
File size: 520 byte(s)
sync
#!/bin/sh

r=`pwd`

switchone(){
    d=$1
    u=`svn info | grep '^URL:' | sed 's/URL: //'`
    case $u in
	svn://smlnj-gforge*)
	    n=`echo $u | sed 's/svn:\/\/smlnj-gforge\.cs\.uchicago\.edu/https:\/\/smlnj-gforge\.cs\.uchicago\.edu\/svn/'`
	    echo $d '->' $n
	    svn switch --relocate $u $n
	    ;;
	*)
	    echo Will not switch $d "($u)".
	    ;;
    esac
}

if [ -d .svn ] ; then
    switchone .
else
    for d in * ; do
	if [ -d $d/.svn ] ; then
	    cd $d
	    switchone $d
	    cd $r
	fi
    done
fi

exit 0

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0