[pkg-java-scripts] 01/01: Updated setup-packaging-repository for Salsa

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Mar 5 11:56:08 GMT 2018


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository pkg-java-scripts.

commit 94de169f4610a0320266b4d7f090ce72d4b9c2bb
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Mar 5 12:55:48 2018 +0100

    Updated setup-packaging-repository for Salsa
---
 setup-packaging-repository.sh | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/setup-packaging-repository.sh b/setup-packaging-repository.sh
index 21b7af2..38aa6f5 100755
--- a/setup-packaging-repository.sh
+++ b/setup-packaging-repository.sh
@@ -6,7 +6,7 @@
 PACKAGE=$(dpkg-parsechangelog | sed -rne 's/^Source: (.*)/\1/p')
 VERSION=$(dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.A-Za-z~]+)[-+].*$$/\1/p')
 #VERSION=1.0~alpha-1
-TEAM=pkg-java
+TEAM=java-team
 
 echo "Package: $PACKAGE"
 echo "Version: $VERSION"
@@ -30,14 +30,10 @@ shopt -s extglob
 rm -Rfv !(debian)
 
 echo ""
-echo "Creating the Git packaging repository on alioth..."
-#ssh alioth.debian.org "cd /srv/git.debian.org/git/$TEAM && ./setup-repository $PACKAGE"
-
-echo ""
 echo "Prepating the local repository..."
 rm -Rf .git* .travis.yml .pc .idea .settings .classpath .project .checkstyle .lein-failures
 git init
-git remote add origin git+ssh://git.debian.org/git/$TEAM/$PACKAGE
+git remote add origin git+ssh://salsa.debian.org/$TEAM/$PACKAGE
 git add debian
 git commit -m "Initial packaging"
 
@@ -49,3 +45,16 @@ git checkout -f master
 gbp import-orig --no-merge --verbose --pristine-tar $TAR
 git checkout master
 git merge -q --no-edit --allow-unrelated-histories upstream/${VERSION}
+
+while true; do
+    read -p "Do you want to push the repository to Salsa now? [yN] " choice
+    case $choice in
+        [Yy]* ) break;;
+        * ) exit;;
+    esac
+done
+
+. ./setup-salsa-repository ${PACKAGE}
+
+git push --all -u
+git push --tags

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/pkg-java-scripts.git



More information about the pkg-java-commits mailing list