diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2015-01-05 12:41:42 -0800 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2015-01-05 15:07:09 -0800 |
commit | 096247c6e09b6f741368f89390c85b06b81a8820 (patch) | |
tree | f4d3de42f05ef5051661bc7c1d2686b0b96374c4 | |
parent | py2man: missed long_desc from command.template (diff) | |
download | gentoo-keys-096247c6e09b6f741368f89390c85b06b81a8820.tar.gz gentoo-keys-096247c6e09b6f741368f89390c85b06b81a8820.tar.bz2 gentoo-keys-096247c6e09b6f741368f89390c85b06b81a8820.zip |
gkeyldap/bin/make-rel.kering.sh: Initial rough-in of a keyring release script
-rwxr-xr-x | gkeys-ldap/bin/make-rel-keyring.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gkeys-ldap/bin/make-rel-keyring.sh b/gkeys-ldap/bin/make-rel-keyring.sh new file mode 100755 index 0000000..e2b6ceb --- /dev/null +++ b/gkeys-ldap/bin/make-rel-keyring.sh @@ -0,0 +1,38 @@ +#! /bin/sh + +die(){ echo "$@" 1>&2; exit 1; } +success(){ echo "$@"; exit 0; } + +timestamp=$(date +"%Y%m%d%H%M") +echo "timestamp = ${timestamp}" + +filename="gentoo-keys-${timestamp}.tar.xz" +echo "filename = ${filename}" + +target="/var/lib/gkeys/keyring-releases" +base="/var/lib/gkeys/keyrings" +src="gentoo" +repo="/var/lib/gkeys/gkey-seeds" +scptarget="dolsen@dev.gentoo.org:~/public_html/releases/keyrings/" + +#cd /var/lib/gkeys || echo "failed to cd..." && exit 1 + +echo "Beginning tar..." +tar -cpJf $target/$filename --exclude-backups -C $base $src || die "tar failed" + +gkeys sign -F $target/$filename || die "Signing file failed" + +# cd into gkey-seeds, create a tag + +echo "Tagging gkey-seeds repo with release timestamp" + +cd $repo +git tag -m "version bump: ${filename}" "${timestamp}" || die "git tag creation failed" +git push --tags || echo "Failed to push tags" + +echo "${filename} created and signed..." +echo "Uploading to ${scptarget}..." +scp "${target}/${filename} ${scptarget}" || die "scp failed" +scp "${target}/${filename}.sig ${scptarget}" || die "scp failed" + +success "Ready to bump ebuild" |