new target "dist"

git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4314 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2009-07-19 05:47:30 +00:00
parent 024aec421e
commit f339ad28bc
1 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,6 @@
ANT = ant
VERSION = 1.0.1
BINVERSION = 1.0
default: all
@ -21,3 +23,13 @@ check:
unittest:
cd unit; $(MAKE) test
dist:
rm -rf cbc-$(VERSION) cbc-$(BINVERSION)
svn export http://i.loveruby.net/svn/public/cbc/tags/$(VERSION) cbc-$(VERSION)
cd cbc-$(VERSION); $(MAKE)
cd cbc-$(VERSION); $(ANT) clean-build
tar c cbc-$(VERSION) | gzip -n > cbc-$(VERSION).tar.gz
mv cbc-$(VERSION) cbc-$(BINVERSION)
tar c cbc-$(BINVERSION) | gzip -n > cbc-$(BINVERSION).tar.gz
rm -rf cbc-$(BINVERSION)