summaryrefslogtreecommitdiff
path: root/bin/debian-keyring-setup
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-06 11:04:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-06 11:04:49 -0200
commit2fe5868931634968c6387e626baeb27075ecfc77 (patch)
tree40401f487b687d92235aa24e391ef2a96ca1c40a /bin/debian-keyring-setup
parent8748f432cdb01090767001523496f096345a492b (diff)
downloaddebian-2fe5868931634968c6387e626baeb27075ecfc77.tar.gz
debian-2fe5868931634968c6387e626baeb27075ecfc77.tar.bz2
Fix file extensions
Diffstat (limited to 'bin/debian-keyring-setup')
-rwxr-xr-xbin/debian-keyring-setup25
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/debian-keyring-setup b/bin/debian-keyring-setup
new file mode 100755
index 0000000..7e00e89
--- /dev/null
+++ b/bin/debian-keyring-setup
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# Setup a local debian-keyring repository.
+#
+
+# Parameters
+CWD="`pwd`"
+
+# Make sure the keyring repository is initialized
+git submodule update --init || exit 1
+
+# Go there
+cd keyring
+
+# Build the keyring
+make || exit 1
+
+# Symlink
+ln -s output/keyrings/debian-keyring.gpg output/keyrings/debian-keyring.gpg/trustedkeys.gpg || exit 1
+ln -s output/keyrings output/.gnupg || exit 1
+
+# Write devscripts configuration
+cat <<EOF > output/.devscripts
+DSCVERIFY_KEYRINGS="/usr/share/keyrings/debian-keyring.gpg:/usr/share/keyrings/debian-maintainers.gpg:$CWD/keyrings/debian-keyring.gpg"
+EOF