From: Oleg Broytman Date: Sun, 27 Dec 2015 17:00:24 +0000 (+0300) Subject: Add mk-distr X-Git-Tag: 0.0.4~61 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d236f4ea3d2078b297e356b2e052e550bdc8d12b;p=m_librarian.git Add mk-distr --- diff --git a/MANIFEST.in b/MANIFEST.in index cb68694..3bbe63c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ include COPYING ChangeLog MANIFEST.in README.rus.txt README.txt -include TODO requirements.txt sample/m_librarian.conf +include TODO mk-distr requirements.txt sample/m_librarian.conf recursive-include m_librarian *.py diff --git a/mk-distr b/mk-distr new file mode 100755 index 0000000..8efe000 --- /dev/null +++ b/mk-distr @@ -0,0 +1,10 @@ +#! /bin/sh + +umask 022 && + +git archive --format=tar --prefix=m_librarian/ "${1:-HEAD}" | + (cd "$HOME/tmp" && exec tar xf -) && + +cd "$HOME/tmp/m_librarian" && +python setup.py sdist --formats=bztar && +cd dist && mv m_librarian-*.tar.bz2 ../.. && cd ../.. && exec rm -rf m_librarian