Permalink
Browse files

Allow for generating a signed SHA1SUMS file

  • Loading branch information...
1 parent 4567179 commit c3c4e4ae5dd5606f54f467fc8b937588771d8289 @yath yath committed Mar 20, 2011
Showing with 6 additions and 0 deletions.
  1. +1 −0 makexpi.local.example
  2. +5 −0 makexpi.sh
View
@@ -1,3 +1,4 @@
UHURA=/home/foo/mxtools/uhura
KEYFILE=/home/foo/foo-signkey.pem
UPDATE_BASEURL=http://yourhost.example/
+GPGDIR=/home/foo/gnupg
View
@@ -69,4 +69,9 @@ else
echo "No working Uhura installation found, not generating update.rdf." >&2
fi
+if [ -d "$GPGDIR" ]; then
+ echo "Generating sha1sums..." >&2
+ sha1sum ../pkg/*.xpi ../pkg/*.rdf | sed -e 's,\.\./pkg/,,' | gpg --homedir="$GPGDIR" --clearsign > ../pkg/SHA1SUMS
+fi
+
ln -sf "$(basename "$XPI_NAME")" "../pkg/latest.xpi"

0 comments on commit c3c4e4a

Please sign in to comment.