[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    quality/tools
From:       Allen Winter <winter () kde ! org>
Date:       2011-02-03 20:49:01
Message-ID: 20110203204901.965B6AC8C2 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1218696 by winterz:

use new kde-checkout-list.pl to figure out where and what to git checkout.



 M  +8 -31     update-checkouts  


--- trunk/quality/tools/update-checkouts #1218695:1218696
@@ -14,33 +14,9 @@
 
 gitcheckouts()
 {
-  test -z "$1" && return
-  test -d "$1" || return
-  find "$1" -maxdepth 3 -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 reset --hard && git clean -f -d -x && \
-          git pull -n -q
-      else
-        cd $dir ; git clone $url $subdir
-      fi
-    done
-    # Remove old checkouts
-    cd $dir
-    ls -d1 *-git | while read g; do
-      d=${g%-git} 
-      if ! grep -q "^$d" .git-checkout; then
-        echo "Deleting $g"
-        rm -r $g
-      fi
-     done
-  done
+  component=`basename $1`
+  cd `dirname $1` && \
+  /mnt/ebn/bin/kde-checkout-list.pl --clone --gitsuffix --prune --component=$component
 }
 
 gitup()
@@ -86,13 +62,14 @@
 
 TOP=/mnt/ebn/src
 
-svnup $TOP/kde-trunk
-gitcheckouts $TOP/kde-trunk
+svnup $TOP/kde
+cp -f $TOP/kde/kdesdk/scripts/kde-checkout-list.pl  /mnt/ebn/bin
+chmod 775 /mnt/ebn/bin/kde-checkout-list.pl
+gitcheckouts $TOP/kde
 
 svnup $TOP/kde-4.6
 
-update $TOP/bundled-apps koffice
-gitup $TOP/bundled-apps/calligra
+gitcheckouts $TOP/bundled-apps/calligra
 
 svnup $TOP/extragear
 gitcheckouts $TOP/extragear
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic