summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-07 23:01:33 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-02-26 16:17:22 +0100
commit8b1e0d73830183294ab1a46f66b19c2831ce6e73 (patch)
tree975b3c0db0cfd1c1987a0d99e8406859819965f9 /Makefile
parentdbc2cb76d631046ddc6039523595eeb962e5f454 (diff)
downloadnetctl-8b1e0d73830183294ab1a46f66b19c2831ce6e73.tar.gz
netctl-8b1e0d73830183294ab1a46f66b19c2831ce6e73.tar.xz
Makefile: sign tarball and add upload target
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ad356e8..19174b2 100644
--- a/Makefile
+++ b/Makefile
@@ -42,12 +42,16 @@ netctl-$(VERSION).tar.xz: | docs
mv src/netctl{.orig,}
tar --exclude-vcs --transform "s%^%netctl-$(VERSION)/%" --owner=root --group=root --mtime=./netctl-$(VERSION).tar -rf netctl-$(VERSION).tar docs/*.[1-8]
xz netctl-$(VERSION).tar
+ gpg --detach-sign $@
pkgbuild: PKGBUILD
PKGBUILD: netctl-$(VERSION).tar.xz
sed -e "s/%pkgver%/$(VERSION)/" -e "s/%md5sum%/$(shell md5sum $< | cut -d ' ' -f 1)/" contrib/PKGBUILD > $@
+upload: netctl-$(VERSION).tar.xz
+ scp $< $<.sig nymeria.archlinux.org:/srv/ftp/other/packages/netctl
+
clean:
$(MAKE) -C docs clean
- -@rm -vf PKGBUILD *.xz 2>/dev/null
+ -@rm -vf PKGBUILD *.tar.xz *.tar.xz.sig 2>/dev/null