X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mk-distr;h=4b75f166da1b27e488386a2ad6b38e62024176c8;hb=fc09d21b965308d826973fd6e897bdc66a406830;hp=e31fbdca11aff893f0f8d5bb0522a619b0a786ba;hpb=dcf94401c24260463049526daacfbab36d7b4615;p=mimedecode.git diff --git a/mk-distr b/mk-distr index e31fbdc..4b75f16 100755 --- a/mk-distr +++ b/mk-distr @@ -1,16 +1,19 @@ #! /bin/sh -umask 022 - if [ -n "$1" ]; then git checkout "$1" fi && +umask 022 && + git archive --format=tar --prefix=mimedecode/ HEAD | (cd "$HOME/tmp" && exec tar xf -) && -cp -p mimedecode.man mimedecode.html mimedecode.txt "$HOME/tmp/mimedecode" && + +# Copy mimedecode.docbook with timestamp to avoid rebuilding +cp -p mimedecode.docbook 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 +python setup.py sdist --formats=bztar && +cd dist && mv mimedecode-*.tar.bz2 ../.. && cd ../.. && exec rm -rf mimedecode