Permalink
Browse files

Further preparing deployment script

  • Loading branch information...
1 parent 76b5298 commit fe6b6a882ce96d160885bf799e0a071b687db4fb @migurski committed Apr 13, 2012
Showing with 31 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +30 −0 Makefile
View
@@ -0,0 +1 @@
+build
View
@@ -0,0 +1,30 @@
+VERSION:=$(shell cat VERSION)
+PACKAGE=Blit-$(VERSION)
+TARBALL=$(PACKAGE).tar.gz
+DOCROOT=Blit.org:public_html/tilestache/www
+
+all: $(TARBALL)
+ #
+
+live: $(TARBALL)
+ python setup.py register
+
+$(TARBALL):
+ mkdir $(PACKAGE)
+ ln setup.py $(PACKAGE)/
+ ln README $(PACKAGE)/
+ ln VERSION $(PACKAGE)/
+
+ mkdir $(PACKAGE)/Blit
+ ln Blit/*.py $(PACKAGE)/Blit/
+
+ rm $(PACKAGE)/Blit/__init__.py
+ cp Blit/__init__.py $(PACKAGE)/Blit/__init__.py
+ perl -pi -e 's#\bN\.N\.N\b#$(VERSION)#' $(PACKAGE)/Blit/__init__.py
+
+ tar -czf $(TARBALL) $(PACKAGE)
+ rm -rf $(PACKAGE)
+
+clean:
+ find Blit -name '*.pyc' -delete
+ rm -rf $(TARBALL) doc

0 comments on commit fe6b6a8

Please sign in to comment.