From: Mark Wooding Date: Sat, 13 Feb 2016 11:07:34 +0000 (+0000) Subject: bin/mdw-sbuild: Add some section-header comments. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/97720cf5de4962c36f1e49857ab3ed780c34a680?ds=sidebyside bin/mdw-sbuild: Add some section-header comments. --- diff --git a/bin/mdw-sbuild b/bin/mdw-sbuild index 7bbeb3c..11c6c16 100755 --- a/bin/mdw-sbuild +++ b/bin/mdw-sbuild @@ -90,12 +90,16 @@ cd .. dsc=${pkg}_${ver}.dsc [ -f "$dsc" ] || fail "where is my \`.dsc' file?" +## Actually do the build. Get a build directory assigned by the server, +## upload the sources, run the build, and collect the results. builddir=$(ssh "$host" mdw-sbuild-server dir "$pkg/$ver") dcmd rsync -a "$dsc" "$host:$builddir/" set +e; ssh "$host" mdw-sbuild-server $buildopts build "$builddir" rc=$?; set -e rsync -a "$host:$builddir/" ./ case $rc in 0) ;; *) exit $rc ;; esac + +## Maybe sign the result. case $?,${keyid+t},$noactp in 0,t,nil) debsign -k"$keyid" "${pkg}_${ver}_"*.changes ;; esac