summaryrefslogtreecommitdiff
path: root/bin/setup
diff options
context:
space:
mode:
authorParabola automatic package builder <dev@lists.parabolagnulinux.org>2014-06-24 03:52:10 +0000
committerParabola automatic package builder <dev@lists.parabolagnulinux.org>2014-06-24 03:52:10 +0000
commit5c3c38b46b93efae12b576c421c8016cc733756d (patch)
tree28b63c2ef0ccfde79a49c947730fc96c31d95dcf /bin/setup
parenta082659489cd02ca2ed4878efd63d0f878e32cc0 (diff)
avoid repeating the packager info. Get it from git config when generating a gpg key, then get everything from gpg in makepkg.
Diffstat (limited to 'bin/setup')
-rwxr-xr-xbin/setup6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/setup b/bin/setup
index e143fe7..f421cbd 100755
--- a/bin/setup
+++ b/bin/setup
@@ -23,12 +23,12 @@ autobuild $(HOME)/bin/autobuild: $(HOME)/bin/autobuild.c
$(HOME)/.ssh/id_rsa $(HOME)/.ssh/id_rsa.pub:
ssh-keygen -N '' -f $@
-$(HOME)/.gnupg/secring.gpg:
+$(HOME)/.gnupg/secring.gpg: | $(HOME)/.gitconfig
printf '%s\n' \
'Key-Type: default' \
'Subkey-Type: default' \
- 'Name-Real: Parabola automatic package builder' \
- 'Name-Email: dev@lists.parabolagnulinux.org' \
+ "Name-Real: $(git config user.name)" \
+ "Name-Email: $(git config user.email)" \
'Expire-Date: 0' \
| gpg --gen-key --batch