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

tille at users.alioth.debian.org tille at users.alioth.debian.org
Fri May 11 13:53:57 UTC 2012


Author: tille
Date: Fri May 11 13:53:56 2012
New Revision: 3321

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3321
Log:
Some fixes for Vcs-Browser field creation

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=3321&op=diff
==============================================================================
--- blends/trunk/machine_readable/fetch-machine-readable (original)
+++ blends/trunk/machine_readable/fetch-machine-readable Fri May 11 13:53:56 2012
@@ -59,6 +59,7 @@
       svn export svn://localhost/$1/$chlog >/dev/null
       srcname=`dpkg-parsechangelog -lchangelog 2>/dev/null | sed -n 's/^Source: //p'`
       if [ "" != "$srcname" ] ; then
+        trunk="/trunk" # at least for Debian Med and Debian Science
         firstletter=`echo $srcname | sed "s/^\(.\).*/\1/"`
         mkdir -p $TARGETDIR/$firstletter
         mv changelog $TARGETDIR/$firstletter/${srcname}.changelog
@@ -95,7 +96,7 @@
     mkdir -p $TARGETDIR/$firstletter
     mv $TMPCHLOG $TARGETDIR/$firstletter/${srcname}.changelog
     echo "Vcs-Git: git://git.debian.org$1" > $TARGETDIR/$firstletter/${srcname}.vcs
-    echo "Vcs-Browser: git://git.debian.org"`echo $1 | sed 's+^/git/+/?p=+'` >> $TARGETDIR/$firstletter/${srcname}.vcs
+    echo "Vcs-Browser: http://git.debian.org"`echo $1 | sed 's+^/git/+/?p=+'` >> $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




More information about the Blends-commit mailing list