Permalink
Browse files

Adding makefile and packaging boilerplate. Fixes #8

  • Loading branch information...
1 parent dd2aa26 commit cf0d84d352bb906765c11c12f13e07f61c35d3f7 @davidmiller davidmiller committed Sep 10, 2011
Showing with 23 additions and 0 deletions.
  1. +21 −0 Makefile
  2. +2 −0 pony-mode-pkg.el
View
@@ -0,0 +1,21 @@
+VERSION=$(shell grep -P -o '(?<=Version: )[0-9.]+' pony-mode.el)
+RELEASEDIR=pony-mode-$(VERSION)
+BUILDDIR=build/$(RELEASEDIR)
+
+release: clean package
+# tag
+all:
+ @echo "What do you want from me?"
+
+tag:
+ $(shell git tag $(VERSION))
+
+clean:
+ -@ rm -rf build
+
+package:
+ -@ mkdir -p $(BUILDDIR)
+ -@ cp pony-mode.el $(BUILDDIR)
+ -@ cp pony-mode-pkg.el $(BUILDDIR)
+ -@ cp README.rst $(BUILDDIR)/README
+ -@ cd build && tar -cf pony-mode-$(VERSION).tar $(RELEASEDIR)
View
@@ -0,0 +1,2 @@
+(define-package "pony-mode"
+ "0.2" "Minor mode for working with Django Projects")

0 comments on commit cf0d84d

Please sign in to comment.