chiark / gitweb /
bin/mdw-sbuild: Merge the various changes files together.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 13 Feb 2016 11:10:37 +0000 (11:10 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 13 Feb 2016 11:10:37 +0000 (11:10 +0000)
Now there's only one thing which needs to be uploaded to the archive.

bin/mdw-sbuild

index be687f6c1a83c78f710aa5eff069f09809521eab..5630dab8960efa5b1a538e27e9bb0c5216c03328 100755 (executable)
@@ -99,7 +99,13 @@ rc=$?; set -e
 rsync -a "$host:$builddir/" ./
 case $rc in 0) ;; *) exit $rc ;; esac
 
-## Maybe sign the result.
+## Merge the change files together, and maybe sign the result.
+chchch=${pkg}_${ver}_source.changes
+for i in "${pkg}_${ver}"_*.changes; do
+  case " $chchch " in *" $i "*) ;; *) chchch="$chchch $i" ;; esac
+done
+mergechanges -f $chchch
+rm $chchch
 case $signp in
-  t) debsign -k"$keyid" "${pkg}_${ver}_"*.changes ;;
+  t) debsign -k"$keyid" "${pkg}_${ver}_multi.changes" ;;
 esac