-#!/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
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;