[arch-projects] [netctl][PATCH] Makefile: add upload target

Florian Pritz bluewind at xinu.at
Thu Feb 7 11:33:58 EST 2013


Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index ad356e8..d7b3312 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,11 @@ 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
+	rm -f $<.sig
+	gpg --detach-sign $<
+	scp $< $<.sig nymeria:/srv/ftp/other/packages/netctl
+
 clean:
 	$(MAKE) -C docs clean
 	- at rm -vf PKGBUILD *.xz 2>/dev/null
-- 
1.8.1.1


More information about the arch-projects mailing list