diff options
author | Daniel Baumann <daniel@debian.org> | 2008-04-21 10:38:07 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:33 +0100 |
commit | 87a3a037f13b87238bbc6c106af47c163660527e (patch) | |
tree | a2b91077979a72e4d5ce2398900fd07b5fbb8af4 /examples | |
parent | 2b52e06bf38fe0690186dc7778cbd954294c3523 (diff) | |
download | live-build-87a3a037f13b87238bbc6c106af47c163660527e.zip live-build-87a3a037f13b87238bbc6c106af47c163660527e.tar.gz |
Adding debian-unofficial-archive-keyring to snapshots.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/cron/snapshots.sh | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh index 10e0a43..bfd25b3 100755 --- a/examples/cron/snapshots.sh +++ b/examples/cron/snapshots.sh @@ -5,7 +5,7 @@ if [ -n "${1}" ] then PACKAGES="${@}" else - PACKAGES="live-helper live-initramfs live-initscripts live-webhelper" + PACKAGES="live-helper live-initramfs live-initscripts live-webhelper debian-unofficial-archive-keyring" fi DEBEMAIL="debian-live-devel@lists.alioth.debian.org" @@ -57,10 +57,28 @@ do # Getting sources cd "${TEMPDIR}" - git clone git://git.debian.org/git/users/daniel/${PACKAGE}.git + + case "${PACKAGE}" in + debian-unofficial-archive-keyring) + git clone git://git.debian.net/git/${PACKAGE}.git + ;; + + *) + git clone git://git.debian.org/git/users/daniel/${PACKAGE}.git + ;; + esac # Getting version cd "${TEMPDIR}"/${PACKAGE} + + for BRANCH in debian + do + if [ -n "$(git branch -r | grep ${BRANCH})" ] + then + git checkout -b ${BRANCH} origin/${BRANCH} || true + fi + done + VERSION="$(dpkg-parsechangelog | awk '/Version:/ { print $2 }' | awk -F- '{ print $1 }')" # Getting revision |