X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=mk-distr;h=ecce71261f302ded2c896e764f3ed4aea5882d91;hp=201ad4b3f32f7745eec749b97cb39df933fea106;hb=1780bc79e81540266fcef0a2e64615a266abd339;hpb=69903a8fcef8dc34e67b1d18ccd84ec133d82546 diff --git a/mk-distr b/mk-distr index 201ad4b..ecce712 100755 --- a/mk-distr +++ b/mk-distr @@ -1,14 +1,13 @@ #! /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 -) && -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 &&