User:MattRead/habari-extras-script

From Habari Project

Jump to: navigation, search

check out/update all -extras to CWD. So run inside 3rdparty or user directory

#!/bin/bash
 
if [ -z $1 ] || [ $1 = "-h" ]
then
echo "usage:
   $0 <repo> - checkout or update habari-extras repo to CWD/<repo>
"
exit
fi
 
for d in `svn ls http://svn.habariproject.org/habari-extras/$1`;
do
        if [ -d $d ];
        then
                echo "updating $d"
                svn up -q $d&
        else
                echo "checking out $d"
                svn co -q https://svn.habariproject.org/habari-extras/$1/$d/trunk $1/$d&
        fi
done
 
echo "done!"
Personal tools