[Blends-commit] r3322 - /blends/trunk/machine_readable/fetch-machine-readable

tille at users.alioth.debian.org tille at users.alioth.debian.org
Fri May 11 20:53:16 UTC 2012


Author: tille
Date: Fri May 11 20:53:16 2012
New Revision: 3322

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3322
Log:
Also store Blend name in *.vcs file

Modified:
    blends/trunk/machine_readable/fetch-machine-readable

Modified: blends/trunk/machine_readable/fetch-machine-readable
URL: http://svn.debian.org/wsvn/blends/blends/trunk/machine_readable/fetch-machine-readable?rev=3322&op=diff
==============================================================================
--- blends/trunk/machine_readable/fetch-machine-readable (original)
+++ blends/trunk/machine_readable/fetch-machine-readable Fri May 11 20:53:16 2012
@@ -65,6 +65,7 @@
         mv changelog $TARGETDIR/$firstletter/${srcname}.changelog
         echo "Vcs-Svn: svn://svn.debian.org/$1/$pkg$trunk/" > $TARGETDIR/$firstletter/${srcname}.vcs
         echo "Vcs-Browser: http://svn.debian.org/wsvn/$1/$pkg$trunk/" >> $TARGETDIR/$firstletter/${srcname}.vcs
+        echo "Blend: `echo $1 | sed 's?/.*??'`" >> $TARGETDIR/$firstletter/${srcname}.vcs
         for file in control copyright upstream ; do
           getfile=`grep -e "/$pkg/trunk/debian/$file$" -e "^$pkg/trunk/debian/$file$" -e "^$pkg/debian/$file$" $TMPLIST 2>/dev/null`
           if [ "" != "$getfile" ] ; then
@@ -97,6 +98,7 @@
     mv $TMPCHLOG $TARGETDIR/$firstletter/${srcname}.changelog
     echo "Vcs-Git: git://git.debian.org$1" > $TARGETDIR/$firstletter/${srcname}.vcs
     echo "Vcs-Browser: http://git.debian.org"`echo $1 | sed 's+^/git/+/?p=+'` >> $TARGETDIR/$firstletter/${srcname}.vcs
+    echo "Blend: `echo $2 | sed 's?/.*??'`" >> $TARGETDIR/$firstletter/${srcname}.vcs
     for file in `git ls-tree master debian/ 2>/dev/null | grep -e "/control$" -e "/changelog$" -e "/copyright$" -e "/upstream$" | sed 's/^[0-9]\+[[:space:]]\+blob[[:space:]]\+[0-9a-f]\+[[:space:]]\+//'` ; do
       target=$TARGETDIR/$firstletter/${srcname}.`echo $file | sed 's?debian/??'`
       git show HEAD:$file > $target
@@ -120,7 +122,7 @@
   for gitrepo in `find /git/$gitdir -mindepth 1 -maxdepth 1 -type d -name "*.git"` ; do
     # echo $gitrepo
     if [ "$gitrepo" != ".git" ] ; then
-      git_checkout_machine_readable $gitrepo
+      git_checkout_machine_readable $gitrepo $gitdir
     fi
   done
 done




More information about the Blends-commit mailing list