[Ubuntu-BR] dúvida sobre subversion

Edgar Wascch wascch em gmail.com
Segunda Novembro 5 19:47:41 UTC 2012


Em Mon, 5 Nov 2012 16:52:47 -0200
Anderson Unsonst <andersonunsonst em gmail.com> escreveu:

> eu não 'manjo' de svn, mas você pode criar um sh e mandar ele
> verificar os diretorios pra você procura por 'svn recursive' no google
> que já tem pronto isso
> 

Valeu Anderson, consegui. Peguei um exemplo e funcionou corretamente!

=================================

#!/bin/bash
 
update ()
{
#echo "Call to update ($1)"
if [ -d $1/.svn ]
then
echo "Updating $1..."
svn up $1
else
# echo `ls`
for i in `ls $1`
do
if [ -d $1/$i ]
then
# echo "Descending to $i..."
update $1/$i
fi
done
fi
}
 
if [ "$1" == "" ]; then
echo "Updating all SVN projects in `pwd`..."
update .
else
echo "Updating all SVN projects in $1..."
update $1
fi

=================================

blz




More information about the ubuntu-br mailing list