Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Makefile: new rule 'release'

  • Loading branch information...
commit a6d0b91a5a69c1ed44410376be24b22f50c9c2aa 1 parent 8524a47
Yuto Hayamizu authored
Showing with 20 additions and 3 deletions.
  1. +2 −0  .gitignore
  2. +1 −0  LAST-VERSION
  3. +16 −2 Makefile
  4. +1 −1  VERSION
2  .gitignore
View
@@ -2,3 +2,5 @@
/doc/web/upload.bat
/doc/web/twmode.pot
/doc/web/ja/*
+/twittering-mode-*.tar.gz
+/twittering-mode-*.zip
1  LAST-VERSION
View
@@ -0,0 +1 @@
+0.8
18 Makefile
View
@@ -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)
+
2  VERSION
View
@@ -1 +1 @@
-2009-DEC
+0.9
Please sign in to comment.
Something went wrong with that request. Please try again.