]> git.phdru.name Git - m_librarian.git/commitdiff
Add mk-distr
authorOleg Broytman <phd@phdru.name>
Sun, 27 Dec 2015 17:00:24 +0000 (20:00 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 27 Dec 2015 17:00:24 +0000 (20:00 +0300)
MANIFEST.in
mk-distr [new file with mode: 0755]

index cb686942a68a0d17f76e3fdca29bb77f58260fd9..3bbe63ce042e99fa3f64ce0159a38dd81e8e188f 100644 (file)
@@ -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 (executable)
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