Skip to content

Commit

Permalink
updated release script
Browse files Browse the repository at this point in the history
  • Loading branch information
hayamiz committed Dec 29, 2009
1 parent 32624c9 commit 16b19d4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
27 changes: 19 additions & 8 deletions Makefile
@@ -1,7 +1,11 @@

EMACS ?= emacs

DISTRIB_FILES = twittering-mode.el README NEWS INSTALL win-curl
DISTRIB_FILES = twittering-mode.el \
README README.ja \
NEWS NEWS.ja \
INSTALL INSTALL.ja \
win-curl

.PHONY: all check clean update-po release

Expand All @@ -14,25 +18,32 @@ check:
./test/run-test.sh -y

clean :
rm -f twittering-mode.elc README NEWS *.zip *.tar.gz
rm -f twittering-mode.elc README *.zip *.tar.gz

DISTRIB_DIR = twittering-mode-$$(cat VERSION)
VERSION = $$(cat VERSION)
DISTRIB_DIR = twittering-mode-$(VERSION)

README: README.markdown
cp $< $@
NEWS: NEWS.markdown
cp $< $@
release: $(DISTRIB_FILES)
@(! [ -z "$${SF_USERNAME}" ] || (echo "Environmental variable 'SF_USERNAME', which is a username of sf.net, is required."; false))
@echo -n "updated VERSION and LAST-VERSION files? [y or n]: "; read ans; [ "$${ans}" = "y" ]
@echo -n "wrote NEWS.markdown file? [y or n]: "; read ans; [ "$${ans}" = "y" ]
@echo -n "made a tag '$(DISTRIB_DIR)'? [y or n]: "; read ans; [ "$${ans}" = "y" ]
@echo -n "wrote NEWS file? [y or n]: "; read ans; [ "$${ans}" = "y" ]
@echo -n "made a tag 'v$(VERSION)'? [y or n]: "; read ans; \
if [ "$${ans}" != "y" ]; then \
echo -n " make it now? [y or n]: "; read ans; \
if [ "$${ans}" = "y" ]; then \
echo git tag -a -m '"Release tag: v$(VERSION)"' v$(VERSION); \
git tag -a -m "Release tag: v$(VERSION)" v$(VERSION); \
else \
false; \
fi; \
fi
ruby misc/vernum-updater.rb \
--prev-version=$$(cat LAST-VERSION) --next-version=$$(cat VERSION) \
VERSION twittering-mode.el doc/web/index.html
@([ -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))
Expand Down
2 changes: 1 addition & 1 deletion howto/release
Expand Up @@ -7,7 +7,7 @@
- Add new version number to `/NEWS` and describe updates.
- Update version numbers on web pages(`/doc/web/index.text`).
- Change the version number in `/VERSION` to next (expected) version number.
- Make a tag `release-<VERSION>`
- Make a tag `v<VERSION>`
- Upload new source files to souceforge.net
- Publish web pages(`cd doc/web; make upload`).
- Release announce on MLs.
Expand Down

0 comments on commit 16b19d4

Please sign in to comment.