X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mk-distr;h=ecce71261f302ded2c896e764f3ed4aea5882d91;hb=b0fa813d4e4de771dd4cbd606fe8dfbc2756c670;hp=4b75f166da1b27e488386a2ad6b38e62024176c8;hpb=ae4a96c41bcffe4287a83ae101f0243ed697cc03;p=mimedecode.git diff --git a/mk-distr b/mk-distr index 4b75f16..ecce712 100755 --- a/mk-distr +++ b/mk-distr @@ -1,12 +1,8 @@ #! /bin/sh -if [ -n "$1" ]; then - git checkout "$1" -fi && - umask 022 && -git archive --format=tar --prefix=mimedecode/ HEAD | +git archive --format=tar --prefix=mimedecode/ "${1:-HEAD}" | (cd "$HOME/tmp" && exec tar xf -) && # Copy mimedecode.docbook with timestamp to avoid rebuilding