X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mk-distr;h=4b75f166da1b27e488386a2ad6b38e62024176c8;hb=8989dd0488670beb82419a80c0df268eea83d80b;hp=79e9e1ff9c85a41b0bae4d6125385c1e7b9eb268;hpb=ef1fdd28011fba3b76d63b8cd7dfb0ae22064525;p=mimedecode.git diff --git a/mk-distr b/mk-distr index 79e9e1f..4b75f16 100755 --- a/mk-distr +++ b/mk-distr @@ -1,14 +1,17 @@ #! /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 &&