diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-10-14 09:26:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-10-14 09:51:29 +0000 |
commit | 53906664f94648b2910b5e12b95b0b916c1b5866 (patch) | |
tree | 2eabd739ac1a7dab756b98cbed40420892ddec4e | |
parent | Updating. (diff) | |
download | progress-linux-tools-53906664f94648b2910b5e12b95b0b916c1b5866.tar.xz progress-linux-tools-53906664f94648b2910b5e12b95b0b916c1b5866.zip |
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-x | bin/git-new.sh | 24 | ||||
-rwxr-xr-x | bin/old_git-new.sh | 67 |
2 files changed, 83 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 diff --git a/bin/old_git-new.sh b/bin/old_git-new.sh new file mode 100755 index 0000000..72bb497 --- /dev/null +++ b/bin/old_git-new.sh @@ -0,0 +1,67 @@ +#!/bin/sh + +set -e + +if [ -z "${1}" ] || [ -z "${2}" ] +then + echo "Usage: ${0} DISTRIBUTION PACKAGE" + exit 1 +fi + +CATEGORY="packages" + +DISTRIBUTION="${1}" +shift 1 + +PACKAGES="${@}" + +SSH_OPTIONS="" + +case "${DISTRIBUTION}" in + *-extras) + ORIGIN="progress-linux" + BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" + ;; + + *-security) + ORIGIN="debian-security" + BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" + ;; + + *-updates) + ORIGIN="debian-updates" + BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" + ;; + + *-backports) + ORIGIN="debian-backports" + BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" + ;; + + daniel*) + CATEGORY="users/daniel.baumann/debian/packages" + DISTRIBUTION="" + ORIGIN="debian" + BRANCH="debian" + SSH_OPTIONS="-i ~/.ssh/keys/daniel.baumann@progress-linux.org -o ControlMaster=no" + ;; + + *) + ORIGIN="debian" + BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" + ;; +esac + +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} +done |