Skip to content

Commit

Permalink
Further preparing deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed Apr 13, 2012
1 parent 76b5298 commit fe6b6a8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
build
30 changes: 30 additions & 0 deletions Makefile
@@ -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.