X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=mk-distr;fp=mk-distr;h=e31fbdca11aff893f0f8d5bb0522a619b0a786ba;hp=0000000000000000000000000000000000000000;hb=dcf94401c24260463049526daacfbab36d7b4615;hpb=5f3dca690aecb5ec056244e7c0c982fcc2215018 diff --git a/mk-distr b/mk-distr new file mode 100755 index 0000000..e31fbdc --- /dev/null +++ b/mk-distr @@ -0,0 +1,16 @@ +#! /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