From d236f4ea3d2078b297e356b2e052e550bdc8d12b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 27 Dec 2015 20:00:24 +0300 Subject: [PATCH] Add mk-distr --- MANIFEST.in | 2 +- mk-distr | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 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 -- 2.39.5