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

tille at users.alioth.debian.org tille at users.alioth.debian.org
Thu Apr 5 22:00:42 UTC 2012


Author: tille
Date: Thu Apr  5 22:00:41 2012
New Revision: 3274

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3274
Log:
Fix some problem in dectecting the proper files in Git; Add *.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=3274&op=diff
==============================================================================
--- blends/trunk/machine_readable/fetch-machine-readable (original)
+++ blends/trunk/machine_readable/fetch-machine-readable Thu Apr  5 22:00:41 2012
@@ -47,6 +47,7 @@
         firstletter=`echo $srcname | sed "s/^\(.\).*/\1/"`
         mkdir -p $TARGETDIR/$firstletter
         mv changelog $TARGETDIR/$firstletter/${srcname}.changelog
+        echo "svn://svn.debian.org/$1/" > $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
@@ -77,7 +78,8 @@
     firstletter=`echo $srcname | sed "s/^\(.\).*/\1/"`
     mkdir -p $TARGETDIR/$firstletter
     mv $TMPCHLOG $TARGETDIR/$firstletter/${srcname}.changelog
-    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
+    echo "git://git.debian.org/$1" > $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
     done




More information about the Blends-commit mailing list