diff options
-rwxr-xr-x | sign-autobuilds.sh | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/sign-autobuilds.sh b/sign-autobuilds.sh index 798b22c..df7f828 100755 --- a/sign-autobuilds.sh +++ b/sign-autobuilds.sh @@ -23,7 +23,7 @@ VERBOSEP=false signone() { f="$1" - $DEBUGP gpg --homedir /home/gmirror/.gnupg-releng/ --armor --clearsign "${f}" + $DEBUGP gpg --homedir /home/gmirror/.gnupg-releng/ --armor --detach-sign "${f}" } gpgconf --kill all @@ -33,9 +33,9 @@ pushd $RELEASES/$a >/dev/null || continue #echo "ISOS:" [[ -d autobuilds ]] || exit -digests="$(find autobuilds -name '*.DIGESTS' )" -sigs="$(find autobuilds -name '*.DIGESTS.asc' )" -unsigned="$(comm -23 <(echo "$digests" |sort) <(echo "$sigs" | sed -e 's,.asc$,,g' |sort))" +files="$(find autobuilds -name '*.tar.xz' -or -name '*.iso' -or -name '*.tar.bz2' -or -name '*.lif')" +sigs="$(find autobuilds -name '*.asc' )" +unsigned="$(comm -23 <(echo "$files" |sort) <(echo "$sigs" | sed -e 's,.asc$,,g' |sort))" #$VERBOSEP echo "=== ARCH: $a" @@ -44,7 +44,7 @@ for dgst in $unsigned ; do $VERBOSEP echo "Signing $dgst" signone $dgst fi -done +done for dgst in $digests ; do if [ -f ${dgst}.asc -a ${dgst} -nt ${dgst}.asc ]; then @@ -54,15 +54,6 @@ for dgst in $digests ; do fi done -#echo "$isos" -#latest="$(echo "$isos" | tail -n1)" -#if [[ -n $latest ]]; then -# #echo "latest is $latest" -# latest=$(echo "$latest" | awk '{print $2}') -# #pwd -# rm current && ln -s $latest current -#fi - popd >/dev/null done |