[Debian-med-packaging] gbp-create-remote-repo, (was: Re: [med-svn] r16675 - trunk/package_template)

Charles Plessy charles-listes-med-packaging at plessy.org
Sun Apr 13 07:13:20 UTC 2014


Le Sun, Apr 13, 2014 at 06:45:28AM +0000, Andreas Tille a écrit :
> 
> Added: trunk/package_template/inject-into-alioth-git
> ===================================================================
> --- trunk/package_template/inject-into-alioth-git	                        (rev 0)
> +++ trunk/package_template/inject-into-alioth-git	2014-04-13 06:45:28 UTC (rev 16675)
> @@ -0,0 +1,14 @@
> +#!/bin/sh -e
> +# This script implements the "Git tips" given here
> +#   http://debian-med.alioth.debian.org/docs/policy.html#git-tips
> +# Use it with caution since it is less testet
> +
> +DEBPKGNAME=`dpkg-parsechangelog | awk '/^Source:/ {print $2}'`
> +SHORTDESC=`grep "^Description: " debian/control | head -n 1 | sed 's/^Description: //'`
> +VCSGIT=`grep "^Vcs-Git: " debian/control | sed -e 's/^Vcs-Git: //' -e 's#git://anonscm.debian.org/#ssh://git.debian.org/git/#'`
> +
> +ssh git.debian.org "cd /git/debian-med; ./setup-repository $DEBPKGNAME '$SHORTDESC'"
> +git remote add origin $VCSGIT
> +git push origin master
> +git push --all --set-upstream
> +git push --tags

Hi Andreas,

I wonder how much of the above is obsoleted by gbp-create-remote-repo,
which I discovered yesterday.

Feel free to experiment before me ;)

-- 
Charles



More information about the Debian-med-packaging mailing list