2012-11-29 21:30:37 -08:00
|
|
|
TAGGER_BASE := $(HOME)/Dropbox/tagger/comictagger
|
2013-02-06 14:29:52 -08:00
|
|
|
TAGGER_SRC := $(TAGGER_BASE)/src
|
|
|
|
VERSION_STR := $(shell grep version $(TAGGER_SRC)/ctversion.py| cut -d= -f2 | sed 's/\"//g')
|
2013-02-06 11:13:07 -08:00
|
|
|
PASSWORD := $(shell cat $(TAGGER_BASE)/project_password.txt)
|
2013-02-06 14:29:52 -08:00
|
|
|
UPLOAD_TOOL := $(TAGGER_BASE)/google/googlecode_upload.py
|
2012-11-29 21:30:37 -08:00
|
|
|
all: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.pyc *.pyo
|
|
|
|
rm -f logdict*.log
|
2013-01-24 22:13:33 -08:00
|
|
|
make -C mac clean
|
|
|
|
make -C windows clean
|
|
|
|
|
2012-11-29 21:30:37 -08:00
|
|
|
zip:
|
|
|
|
cd release; \
|
|
|
|
rm -rf *zip comictagger-src-$(VERSION_STR) ; \
|
2013-01-31 19:48:53 -08:00
|
|
|
svn export https://comictagger.googlecode.com/svn/trunk/ comictagger-src-$(VERSION_STR); \
|
2012-11-29 21:30:37 -08:00
|
|
|
zip -r comictagger-src-$(VERSION_STR).zip comictagger-src-$(VERSION_STR); \
|
|
|
|
rm -rf comictagger-src-$(VERSION_STR)
|
|
|
|
|
|
|
|
@echo When satisfied with release, do this:
|
2012-11-30 00:01:35 -08:00
|
|
|
@echo make svn_tag
|
2012-11-29 21:30:37 -08:00
|
|
|
|
2012-11-30 00:01:35 -08:00
|
|
|
svn_tag:
|
|
|
|
svn copy https://comictagger.googlecode.com/svn/trunk \
|
|
|
|
https://comictagger.googlecode.com/svn/tags/$(VERSION_STR) -m "Release $(VERSION_STR)"
|
2013-02-06 11:13:07 -08:00
|
|
|
|
|
|
|
upload:
|
|
|
|
$(UPLOAD_TOOL) -p comictagger -s "ComicTagger $(VERSION_STR) Source" -l Featured,Type-Source -u beville -w $(PASSWORD) "release/comictagger-src-$(VERSION_STR).zip"
|
|
|
|
$(UPLOAD_TOOL) -p comictagger -s "ComicTagger $(VERSION_STR) Mac OS X" -l Featured,Type-Archive -u beville -w $(PASSWORD) "release/ComicTagger-$(VERSION_STR).dmg"
|
|
|
|
$(UPLOAD_TOOL) -p comictagger -s "ComicTagger $(VERSION_STR) Windows" -l Featured,Type-Installer -u beville -w $(PASSWORD) "release/ComicTagger v$(VERSION_STR).exe"
|