A script that updates all your subversion repositories
I have several subversion repositories that I continually need to update. Here is a convenient script I wrote that automatically updates all of them.
For bash (also sh,ksh)
#! /bin/bash svnbase="/Users/Chris/Home/box/" # Number of subversion repositories. for ((i=0;i<$listnum;i++))
# Subversion repositories to be updated
svnlist=( \
"cae" \
"jtk" \
"llm" \
"idh" \
)
listnum=${#svnlist[@]}
do
echo; echo ${svnlist[${i}]}"..."; echo
cd $svnbase${svnlist[${i}]}
svn update
done