X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=build_archive;h=99a1a41fbe9abf2a7fa5b30e1b7c6e69d135affe;hb=3d5241a316e3ff729b19b878b0841558120f75e9;hp=e2f092b5398f8ec487c53af303ee22259fa78218;hpb=8a262cc2a5e3cf5a38049ebccb0680f8d4f0e6ee;p=bin.git diff --git a/build_archive b/build_archive index e2f092b..99a1a41 100755 --- a/build_archive +++ b/build_archive @@ -1,18 +1,18 @@ -#!/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 cat - < Release Origin: donarmstrong Label: donarmstrong -Architectures: all i386 +Architectures: ${ARCHITECTURES} EOF fi; apt-ftparchive -qq --db apt_ftparchive.db --contents packages . > Packages; @@ -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;