diff options
Diffstat (limited to 'bin/git-new.sh')
-rwxr-xr-x | bin/git-new.sh | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/bin/git-new.sh b/bin/git-new.sh index 72bb497..549120b 100755 --- a/bin/git-new.sh +++ b/bin/git-new.sh @@ -42,17 +42,25 @@ case "${DISTRIBUTION}" in SSH_OPTIONS="-o ControlMaster=no" ;; - daniel*) - CATEGORY="users/daniel.baumann/debian/packages" - DISTRIBUTION="" + *) + ORIGIN="debian" + BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" + ;; +esac + +case "${DISTRIBUTION}" in + sid|rc-buggy) + CATEGORY="" ORIGIN="debian" BRANCH="debian" SSH_OPTIONS="-i ~/.ssh/keys/daniel.baumann@progress-linux.org -o ControlMaster=no" ;; *) - ORIGIN="debian" - BRANCH="progress-linux" + CATEGORY="" + ORIGIN="${DISTRIBUTION}" + BRANCH="fastforward" SSH_OPTIONS="-o ControlMaster=no" ;; esac @@ -61,7 +69,7 @@ for PACKAGE in ${PACKAGES} do REPOSITORY="$(echo ${CATEGORY}/${DISTRIBUTION}/${PACKAGE} | sed -e 's|//|/|g')" - ssh ${SSH_OPTIONS} git@git.progress-linux.org create ${REPOSITORY} - ssh ${SSH_OPTIONS} git@git.progress-linux.org desc ${REPOSITORY} ${ORIGIN}: ${PACKAGE} - ssh ${SSH_OPTIONS} git@git.progress-linux.org symbolic-ref ${REPOSITORY} HEAD refs/heads/${BRANCH} + ssh ${SSH_OPTIONS} git@git.fastforward-packages.org create ${REPOSITORY} + ssh ${SSH_OPTIONS} git@git.fastforward-packages.org desc ${REPOSITORY} ${ORIGIN}: ${PACKAGE} + ssh ${SSH_OPTIONS} git@git.fastforward-packages.org symbolic-ref ${REPOSITORY} HEAD refs/heads/${BRANCH} done |