From 9a1443a8bf6e3e05b7ae4f02d3bc6a8b02e80754 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 28 Nov 2012 02:50:04 +0000 Subject: [PATCH] support .build_archive with signing keys --- build_archive | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build_archive b/build_archive index e5919a0..99a1a41 100755 --- a/build_archive +++ b/build_archive @@ -1,11 +1,11 @@ -#!/bin/sh +#!/bin/bash ORIGIN=donarmstrong LABEL=donarmstrong ARCHITECTURES="all i386 amd64 powerpc" if [ -e .build_archive.conf ]; then - .build_archive.conf + . .build_archive.conf fi; if [ ! -e Release ]; then @@ -27,4 +27,9 @@ apt-ftparchive -qq --db apt_ftparchive.db \ for file in Sources Packages Contents; do gzip -c $file > ${file}.gz bzip2 -c $file > ${file}.bz2 -done; \ No newline at end of file +done; + +if [ -n "$SIGNING_KEY" ]; then + rm -f Release.gpg + gpg ${GPG_OPTIONS} --default-key "${SIGNING_KEY}" --armor --output Release.gpg --detach-sign Release +fi; -- 2.39.2