summaryrefslogtreecommitdiffstats
path: root/__root__
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-02-11 19:42:19 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-02-26 22:36:34 +0100
commit3f35f133967f3b3e3c35db44d0612473491d917f (patch)
tree8fcde409b76ed506aa1d6c9e451366cad5458494 /__root__
parentf2db2029b6065dc52ea5ae63959eaf4bbf38ad62 (diff)
downloadclufter-3f35f133967f3b3e3c35db44d0612473491d917f.tar.gz
clufter-3f35f133967f3b3e3c35db44d0612473491d917f.tar.xz
clufter-3f35f133967f3b3e3c35db44d0612473491d917f.zip
run-sdist: script for convenient local-commit sdist'ing
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '__root__')
-rwxr-xr-x__root__/run-sdist9
1 files changed, 9 insertions, 0 deletions
diff --git a/__root__/run-sdist b/__root__/run-sdist
new file mode 100755
index 0000000..e7923a7
--- /dev/null
+++ b/__root__/run-sdist
@@ -0,0 +1,9 @@
+#/bin/sh
+# for locally-commited-only round-trip
+pushd "$(git rev-parse --show-toplevel)"
+git archive --format=tar HEAD | (
+ cd $(mktemp -d '/var/tmp/pkg-XXXXX') \
+ && tar xf - \
+ && python setup.py sdist -d "${OLDPWD}/__root__/dist")
+popd
+echo "New source tarball created: $(ls -1t __root__/dist | head -n1)"