Skip to content

Commit

Permalink
fixed Makefile 'release' rule
Browse files Browse the repository at this point in the history
add distribution files
update VERSION and LAST-VERSION if only needed
  • Loading branch information
hayamiz committed Jun 4, 2010
1 parent 10e0ec8 commit 6252493
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Expand Up @@ -5,7 +5,9 @@ DISTRIB_FILES = twittering-mode.el \
README README.ja \
NEWS NEWS.ja \
INSTALL INSTALL.ja \
win-curl
win-curl \
url-emacs21 \
emacs21

.PHONY: all check clean update-po release release-upload

Expand All @@ -30,8 +32,10 @@ release: $(DISTRIB_FILES)
@echo -n "wrote NEWS file? [y or n]: "; read ans; [ "$${ans}" = "y" ]
@echo -n "What is next version number?: " && \
read version && \
mv VERSION LAST-VERSION && \
echo $${version} > VERSION
(if [ "$${version}" != "$$(cat VERSION)" ]; then \
mv VERSION LAST-VERSION; \
echo $${version} > VERSION; \
fi) && \
ruby misc/vernum-updater.rb \
--prev-version=$$(cat LAST-VERSION) --next-version=$$(cat VERSION) \
doc/web/index.html
Expand Down

0 comments on commit 6252493

Please sign in to comment.