From 0a155096e0d101cb30fbeccdfb630e0f14c0aaf9 Mon Sep 17 00:00:00 2001 Message-Id: <0a155096e0d101cb30fbeccdfb630e0f14c0aaf9.1714111006.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 26 Dec 2011 00:03:53 +0000 Subject: [PATCH] keys.archive: New program to capture and sign an archive. Organization: Straylight/Edgeware From: Mark Wooding Doesn't include the key nubs. --- Makefile.am | 1 + keys.archive | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 keys.archive diff --git a/Makefile.am b/Makefile.am index 3566e3a..ba7fdff 100644 --- a/Makefile.am +++ b/Makefile.am @@ -93,6 +93,7 @@ keyfunc.sh: keyfunc.sh.in Makefile mv keyfunc.sh.new keyfunc.sh ## Commands. +dist_pkglib_SCRIPTS += keys.archive dist_pkglib_SCRIPTS += keys.conceal dist_pkglib_SCRIPTS += keys.keeper-cards dist_pkglib_SCRIPTS += keys.new-keeper diff --git a/keys.archive b/keys.archive new file mode 100755 index 0000000..3ac414e --- /dev/null +++ b/keys.archive @@ -0,0 +1,57 @@ +#! /bin/sh +### +### Output a publishable archive of the key repository +### +### (c) 2011 Mark Wooding +### + +###----- Licensing notice --------------------------------------------------- +### +### This file is part of the distorted.org.uk key management suite. +### +### distorted-keys is free software; you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation; either version 2 of the License, or +### (at your option) any later version. +### +### distorted-keys is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with distorted-keys; if not, write to the Free Software Foundation, +### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +set -e +case "${KEYSLIB+t}" in t) ;; *) echo >&2 "$0: KEYSLIB unset"; exit 1 ;; esac +. "$KEYSLIB"/keyfunc.sh + +defhelp <$label.tar.gz.new +c_sign $kdir $knub <$label.tar.gz.new >$label.sig.new +for i in sig tar.gz; do mv $label.$i.new $label.$i; done + +###----- That's all, folks -------------------------------------------------- -- [mdw]