Add Makefile

This commit is contained in:
Pierre Schmitz 2012-02-13 14:37:52 +01:00
parent f2101938ba
commit c1359ffd9e
3 changed files with 32 additions and 0 deletions

5
.gitattributes vendored Normal file
View File

@ -0,0 +1,5 @@
update-keys export-ignore
.gitattributes export-ignore
.gitignore export-ignore
master-keyids export-ignore
packager-keyids export-ignore

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*~
archlinux-keyring-*.tar.gz
archlinux-keyring-*.tar.gz.sig

24
Makefile Normal file
View File

@ -0,0 +1,24 @@
V=20120213
PREFIX = /usr/local
install:
install -dm0755 $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master
install -dm0755 $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager
for k in master/*.asc; do install -m0644 $$k $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master/; done
for k in packager/*.asc; do install -m0644 $$k $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager/; done
uninstall:
for k in master/*.asc; do rm -f $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master/$$k; done
for k in packager/*.asc; do rm -f $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager/$$k; done
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager
dist:
git archive --format=tar --prefix=archlinux-keyring-$(V)/ $(V) | gzip -9 > archlinux-keyring-$(V).tar.gz
gpg --detach-sign --use-agent archlinux-keyring-$(V).tar.gz
upload:
scp archlinux-keyring-$(V).tar.gz archlinux-keyring-$(V).tar.gz.sig gerolde.archlinux.org:/srv/ftp/other/archlinux-keyring/
.PHONY: install uninstall dist upload