X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/f5b3423e1ed65ece2c7615b2fb372cc4d0e39850..33fef33f664c64e3e77064485496ed291c632c13:/bin/mdw-build diff --git a/bin/mdw-build b/bin/mdw-build index bd1b457..a465040 100755 --- a/bin/mdw-build +++ b/bin/mdw-build @@ -285,9 +285,10 @@ esac cat >find-distdir.mk <<'EOF' include Makefile print-distdir: - @echo $(distdir) + @echo >&3 $(distdir) EOF -assign distdir $(make -f find-distdir.mk print-distdir) +assign distdir \ + $({ make -f find-distdir.mk print-distdir >/dev/null 2>&1; } 3>&1) ## Get a tarball distribution. case "$distcheck" in @@ -306,6 +307,7 @@ if ! tar tf $buildpath/$distdir.tar.gz 2>/dev/null | grep -q RELEASE; then fi run mv $buildpath/$distdir.tar.gz . +run gpg -u$(mdw-conf releasekey) -ab -o$distdir.tar.gz.gpg $distdir.tar.gz ## Maybe build the Debian packages. case "$debian" in @@ -323,7 +325,7 @@ case "$upload,$build" in info "Test build: not uploading." ;; yes,release) - run rsync $distdir.tar.gz \ + run rsync $distdir.tar.gz $distdir.tar.gz.gpg \ $(mdw-conf upload-target ftp.distorted.org.uk:~ftp/pub/mdw/) case "$debian" in yes)