[Kde-scm-interest] extragear
David Faure
faure at kde.org
Wed May 5 17:41:42 CEST 2010
On Wednesday 05 May 2010, David Faure wrote:
> SVN commit 1123158 by dfaure:
>
> Add .git-checkout files for the stuff that has moved to git, so that we can
> keep some hierarchical organization in all these git modules, and check
> out the stuff at the right place on lxr and EBN. This could probably be
> useful for kdesvn-build too...
> CCMAIL: winter at kde.org, kde-scm-interest at kde.org, mpyne at kde.org
>
>
> A multimedia/.git-checkout
> A network/.git-checkout
> A sdk/.git-checkout
> A sdk/kdevelop-plugins/.git-checkout
And here's the script I'm using on lxr to "clone or pull" the git checkouts
listed in .git-checkout dirs:
find ~/src/trunk -name .git-checkout | while read f; do
dir=`dirname $f`
grep -v '^#' $f | while read line; do
# add -git to the subdir name to make things clear and avoid clashes with
the leftover dirs
subdir=`echo $line | cut -f 1 -d ' '`-git
url=`echo $line | cut -f 2 -d ' '`
full=$dir/$subdir
if [ -d $full ]; then
cd $full && git pull -n -q 2>&1 >> ~/src/svn_trunk.log
else
cd $dir ; git clone $url $subdir 2>&1 >> ~/src/svn_trunk.log
fi
done
done
(Replace ~/src/trunk with your base dir for the sources, but make sure to
still use a full path in that "find" command)
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).
More information about the Kde-scm-interest
mailing list