chiark / gitweb /
bin/mdw-build: Sign and upload tarballs.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 14 Jan 2015 20:56:40 +0000 (20:56 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 14 Jan 2015 20:56:40 +0000 (20:56 +0000)
bin/mdw-build

index 69a6642b7d6eca7f260c0e3e3b861bf99f345375..a4650403a01c9f5df20e2d57282779dcc3b4dbb3 100755 (executable)
@@ -307,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
@@ -324,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)