Browse files

Makefile: new rule 'release'

  • Loading branch information...
1 parent 8524a47 commit a6d0b91a5a69c1ed44410376be24b22f50c9c2aa @hayamiz committed Dec 24, 2009
Showing with 20 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +1 −0 LAST-VERSION
  3. +16 −2 Makefile
  4. +1 −1 VERSION
View
2 .gitignore
@@ -2,3 +2,5 @@
/doc/web/upload.bat
/doc/web/twmode.pot
/doc/web/ja/*
+/twittering-mode-*.tar.gz
+/twittering-mode-*.zip
View
1 LAST-VERSION
@@ -0,0 +1 @@
+0.8
View
18 Makefile
@@ -1,7 +1,9 @@
EMACS ?= emacs
-.PHONY: all clean update-po check
+DISTRIB_FILES = twittering-mode.el README INSTALL win-curl
+
+.PHONY: all check clean update-po release
all:
@@ -12,4 +14,16 @@ check:
./test/run-test.sh
clean :
- rm twittering-mode.elc
+ rm -f twittering-mode.elc README
+
+DISTRIB_DIR = twittering-mode-$$(cat VERSION)
+
+release: $(DISTRIB_FILES)
+ @([ -d $(DISTRIB_DIR) ] && rm -rf $(DISTRIB_DIR)) || true
+ mkdir $(DISTRIB_DIR)
+ cp README.markdown $(DISTRIB_DIR)/
+ cp -r -t $(DISTRIB_DIR)/ $(DISTRIB_FILES)
+ zip -r $(DISTRIB_DIR).zip $(addprefix $(DISTRIB_DIR)/,$(DISTRIB_FILES))
+ tar czvf $(DISTRIB_DIR).tar.gz $(addprefix $(DISTRIB_DIR)/,$(DISTRIB_FILES))
+ rm -rf $(DISTRIB_DIR)
+
View
2 VERSION
@@ -1 +1 @@
-2009-DEC
+0.9

0 comments on commit a6d0b91

Please sign in to comment.