are decoded. Decoding can be controlled by command-line options.
+WHAT'S NEW in version 2.2.1 (2013-12-24)
+ Add mk-distr helper.
+
WHAT'S NEW in version 2.2.0 (2013-12-21)
Rename __version__.py to mimedecode_version.py.
-include ANNOUNCE INSTALL.txt Makefile* MANIFEST.in ez_setup.py
-include mimedecode.docbook mimedecode.html mimedecode.txt mimedecode.man
+include ANNOUNCE INSTALL.txt Makefile* MANIFEST.in
+include mimedecode.docbook mimedecode.man mimedecode.html mimedecode.txt
+include ez_setup.py mk-distr
-VERSION=$(shell python -c "from __version__ import __version__; print __version__")
-
.PHONY: all
-all: docs sdist
-
-DISTFILES = \
-ANNOUNCE \
-INSTALL.txt \
-MANIFEST.in \
-Makefile \
-Makefile.4xslt \
-Makefile.sgmlt \
-Makefile.xsltproc \
-mimedecode.docbook \
-mimedecode.html \
-mimedecode.man \
-mimedecode.py \
-mimedecode.txt \
-mimedecode_version.py \
-setup.py
+all: distr docs
-.PHONY: sdist
-sdist: dist/mimedecode-$(VERSION).tar.gz
-
-.PHONY: dist
-dist/mimedecode-$(VERSION).tar.gz: $(DISTFILES)
- umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist --formats=bztar
+.PHONY: distr
+distr:
+ ./mk-distr
.PHONY: docs
docs: mimedecode.man mimedecode.txt mimedecode.html
.PHONY: clean
clean:
rm -f $(CLEANFILES)
-
-.PHONY: distclean
-distclean: clean
- rm -rf dist
-__version__ = "2.2.0"
+__version__ = "2.2.1"
__author__ = "Oleg Broytman <phd@phdru.name>"
__copyright__ = "Copyright (C) 2001-2013 PhiloSoft Design"
__license__ = "GNU GPL"
--- /dev/null
+#! /bin/sh
+
+umask 022
+
+if [ -n "$1" ]; then
+ git checkout "$1"
+fi &&
+
+git archive --format=tar --prefix=mimedecode/ HEAD |
+ (cd "$HOME/tmp" && exec tar xf -) &&
+cp -p mimedecode.man mimedecode.html mimedecode.txt "$HOME/tmp/mimedecode" &&
+
+cd "$HOME/tmp/mimedecode" &&
+chmod a+r mimedecode.man mimedecode.html mimedecode.txt &&
+python setup.py sdist &&
+cd dist && mv mimedecode-*.tar.gz ../.. && cd ../.. && exec rm -rf mimedecode