summaryrefslogtreecommitdiff
path: root/bin/setup
diff options
context:
space:
mode:
authorAutomatic package builder <autobuilder@parabolagnulinux.org>2014-06-23 01:18:14 +0000
committerAutomatic package builder <autobuilder@parabolagnulinux.org>2014-06-23 01:18:14 +0000
commit6a3019320a088eaf40c6e35d8d4054b09447eb12 (patch)
tree9a341cb0fe9d8293c4a68497e836c4a5a87408e8 /bin/setup
initial commit
Diffstat (limited to 'bin/setup')
-rwxr-xr-xbin/setup22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/setup b/bin/setup
new file mode 100755
index 0000000..ea6b92c
--- /dev/null
+++ b/bin/setup
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+CFLAGS += -std=c99 -Wall -Wextra -Werror
+
+all: $(HOME)/bin/autobuild $(HOME)/.ssh/id_rsa $(HOME)/.ssh/id_rsa.pub $(HOME)/.gnupg/secring.gpg
+
+$(HOME)/bin/autobuild: $(HOME)/bin/autobuild.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ && chmod 6755 $@
+
+$(HOME)/.ssh/id_rsa $(HOME)/.ssh/id_rsa.pub:
+ ssh-keygen -N '' -f $@
+
+$(HOME)/.gnupg/secring.gpg:
+ printf '%s\n' \
+ 'Key-Type: default' \
+ 'Subkey-Type: default' \
+ 'Name-Real: Parabola automatic package builder' \
+ 'Name-Email: dev@lists.parabolagnulinux.org' \
+ 'Expire-Date: 0' \
+ | gpg --gen-key --batch
+
+.DELETE_ON_ERROR: