From 97720cf5de4962c36f1e49857ab3ed780c34a680 Mon Sep 17 00:00:00 2001 Message-Id: <97720cf5de4962c36f1e49857ab3ed780c34a680.1717581137.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 13 Feb 2016 11:07:34 +0000 Subject: [PATCH] bin/mdw-sbuild: Add some section-header comments. Organization: Straylight/Edgeware From: Mark Wooding --- bin/mdw-sbuild | 4 ++++ 1 file changed, 4 insertions(+) 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 -- [mdw]