chiark / gitweb /
Fix build-sh problem
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2023 09:23:23 +0000 (10:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2023 09:23:23 +0000 (10:23 +0100)
build-sh

index 887f236df8b671f2893d1618acd2d8bf32e9aeec..0f565b5a95029965f69c4f6c141f1b932a1d2bd3 100755 (executable)
--- a/build-sh
+++ b/build-sh
@@ -39,6 +39,7 @@ Building tarballs
 
 tarball () {
        output=$1; shift
+       >"$output"; # avoids rsync seeing that . changed
        GZIP='-9v --rsyncable' tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \
          --transform='s/^./jarrg/' --exclude={src/build,tmp} "$@" \
          -zcf "$output" .