Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 66 lines (53 sloc) 1.822 kB
e282678 @hayamiz M18N of web pages
authored
1
4e479e4 @hayamiz merged errorneously added Makefile
authored
2 EMACS ?= emacs
3
16b19d4 @hayamiz updated release script
authored
4 DISTRIB_FILES = twittering-mode.el \
5 README README.ja \
6 NEWS NEWS.ja \
7 INSTALL INSTALL.ja \
6252493 @hayamiz fixed Makefile 'release' rule
authored
8 win-curl \
9 url-emacs21 \
10 emacs21
a6d0b91 @hayamiz Makefile: new rule 'release'
authored
11
5b62edb @hayamiz updated update script of makefile
authored
12 .PHONY: all check clean update-po release release-upload upload
e282678 @hayamiz M18N of web pages
authored
13
14 all:
15
16 update-po:
17 $(MAKE) -C doc update-po
4e479e4 @hayamiz merged errorneously added Makefile
authored
18
0690871 @hayamiz changed makefile test rules
authored
19 check:
ab163fe @hayamiz non-stop test running mode
authored
20 ./test/run-test.sh -y
4e479e4 @hayamiz merged errorneously added Makefile
authored
21
22 clean :
16b19d4 @hayamiz updated release script
authored
23 rm -f twittering-mode.elc README *.zip *.tar.gz
a6d0b91 @hayamiz Makefile: new rule 'release'
authored
24
16b19d4 @hayamiz updated release script
authored
25 VERSION = $$(cat VERSION)
26 DISTRIB_DIR = twittering-mode-$(VERSION)
a6d0b91 @hayamiz Makefile: new rule 'release'
authored
27
3947f39 @hayamiz upload scripting in Makefile
authored
28 README: README.markdown
29 cp $< $@
a6d0b91 @hayamiz Makefile: new rule 'release'
authored
30 release: $(DISTRIB_FILES)
3947f39 @hayamiz upload scripting in Makefile
authored
31 @(! [ -z "$${SF_USERNAME}" ] || (echo "Environmental variable 'SF_USERNAME', which is a username of sf.net, is required."; false))
16b19d4 @hayamiz updated release script
authored
32 @echo -n "wrote NEWS file? [y or n]: "; read ans; [ "$${ans}" = "y" ]
09d78e0 @hayamiz updated Makefile 'release' rule
authored
33 @echo -n "What is next version number?: " && \
34 read version && \
6252493 @hayamiz fixed Makefile 'release' rule
authored
35 (if [ "$${version}" != "$$(cat VERSION)" ]; then \
36 mv VERSION LAST-VERSION; \
37 echo $${version} > VERSION; \
38 fi) && \
3947f39 @hayamiz upload scripting in Makefile
authored
39 ruby misc/vernum-updater.rb \
40 --prev-version=$$(cat LAST-VERSION) --next-version=$$(cat VERSION) \
c6e5ab9 @hayamiz fixed Makefile release rule
authored
41 doc/web/index.text
09d78e0 @hayamiz updated Makefile 'release' rule
authored
42 ruby misc/vernum-updater.rb \
43 --prev-version=HEAD --next-version=$$(cat VERSION) \
44 twittering-mode.el NEWS NEWS.ja
a6d0b91 @hayamiz Makefile: new rule 'release'
authored
45 @([ -d $(DISTRIB_DIR) ] && rm -rf $(DISTRIB_DIR)) || true
46 mkdir $(DISTRIB_DIR)
47 cp -r -t $(DISTRIB_DIR)/ $(DISTRIB_FILES)
48 zip -r $(DISTRIB_DIR).zip $(addprefix $(DISTRIB_DIR)/,$(DISTRIB_FILES))
49 tar czvf $(DISTRIB_DIR).tar.gz $(addprefix $(DISTRIB_DIR)/,$(DISTRIB_FILES))
50 rm -rf $(DISTRIB_DIR)
ebfa72b @hayamiz updated release script
authored
51
52 release-upload: release
5b62edb @hayamiz updated update script of makefile
authored
53 make upload
54
55 upload:
3947f39 @hayamiz upload scripting in Makefile
authored
56 (echo "cd /home/frs/project/t/tw/twmode/"; \
57 echo "-rm $(DISTRIB_DIR)/*"; \
58 echo "-rmdir $(DISTRIB_DIR)"; \
59 echo "mkdir $(DISTRIB_DIR)"; \
60 echo "cd $(DISTRIB_DIR)"; \
61 echo "put $(DISTRIB_DIR).zip"; \
62 echo "put $(DISTRIB_DIR).tar.gz") > upload.bat
63 sftp -b upload.bat $${SF_USERNAME},twmode@web.sourceforge.net
64 rm -f upload.bat
a6d0b91 @hayamiz Makefile: new rule 'release'
authored
65
Something went wrong with that request. Please try again.