[med-svn] r16732 - trunk/package_template
Andreas Tille
tille at moszumanska.debian.org
Fri Apr 18 23:01:32 UTC 2014
Author: tille
Date: 2014-04-18 23:01:32 +0000 (Fri, 18 Apr 2014)
New Revision: 16732
Modified:
trunk/package_template/inject-into-alioth-git
Log:
More generalised script
Modified: trunk/package_template/inject-into-alioth-git
===================================================================
--- trunk/package_template/inject-into-alioth-git 2014-04-18 22:46:49 UTC (rev 16731)
+++ trunk/package_template/inject-into-alioth-git 2014-04-18 23:01:32 UTC (rev 16732)
@@ -9,8 +9,9 @@
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/#'`
+DIRatALIOTH=`echo $VCSGIT | sed -e 's#ssh://git.debian.org/git/#/git/#' -e 's#/[^/]\+\.git##'`
-ssh git.debian.org "cd /git/debian-med; ./setup-repository $DEBPKGNAME '$SHORTDESC'"
+ssh git.debian.org "cd $DIRatALIOTH; ./setup-repository $DEBPKGNAME '$SHORTDESC'"
git remote add origin $VCSGIT
git push origin master
git push --all --set-upstream
More information about the debian-med-commit
mailing list