]> git.phdru.name Git - mimedecode.git/blobdiff - mk-distr
Open all files in binary mode
[mimedecode.git] / mk-distr
index 79e9e1ff9c85a41b0bae4d6125385c1e7b9eb268..4b75f166da1b27e488386a2ad6b38e62024176c8 100755 (executable)
--- 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 &&