summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-10-24 00:15:37 +0100
committerNick White <git@njw.me.uk>2010-10-24 00:15:37 +0100
commit1c3d95862b98d71aaa45fdf4bfe166397609a108 (patch)
tree5c81b70229e7f763130a135715158175be6205b7
parent75645602dd70f079ccf550bb5e90dffc21693429 (diff)
Add make dist rule to create releases
-rw-r--r--Makefile18
-rw-r--r--TODO1
2 files changed, 16 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ac0a4a0..d1e1a63 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,25 @@
+NAME = readable
+VERSION = 0.1
+
index.html: doap.ttl README
@echo making webpage
@cat < webheader.html > $@
@smu < README >> $@
- @echo '<h3><a href="latest.tar.gz">Download Readable</a><br />' >> $@
- @echo '<a href="latest.tar.gz.sig">GPG signature</a></h3>' >> $@
+ @echo '<h3><a href="latest.tar.bz2">Download Readable</a><br />' >> $@
+ @echo '<a href="latest.tar.bz2.sig">GPG signature</a></h3>' >> $@
@echo '<hr />' >> $@
@sh summary.sh doap.ttl | smu >> $@
@echo '</body></html>' >> $@
+dist:
+ @mkdir -p $(NAME)-$(VERSION)
+ @cp readable.js COPYING INSTALL README $(NAME)-$(VERSION)
+ @tar -c $(NAME)-$(VERSION) | bzip2 -c > $(NAME)-$(VERSION).tar.bz2
+ @gpg -b < $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).tar.bz2.sig
+ @rm -rf $(NAME)-$(VERSION)
+ @ln -s $(NAME)-$(VERSION).tar.bz2 latest.tar.bz2
+ @ln -s $(NAME)-$(VERSION).tar.bz2.sig latest.tar.bz2.sig
+ @echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
+
+.PHONY: dist
.SUFFIXES: ttl html
diff --git a/TODO b/TODO
index 2df90e5..6c57edd 100644
--- a/TODO
+++ b/TODO
@@ -1,2 +1 @@
-create makefile rule for packaging releases
it'd be nice to be able to run tests