From 76e347ce72f719a249a9ee72fbcc5948baafc944 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 14 Jun 2013 07:32:45 +0100 Subject: Add script to merge .changes files for Debian uploads --- merge | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 merge diff --git a/merge b/merge new file mode 100755 index 0000000..56b80cd --- /dev/null +++ b/merge @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Merge all the source and binary .changes files for an upload to +# Debian unstable. + +set -eu + + +is_for_unstable() +{ + grep '^Distribution: unstable$' "$1" > /dev/null +} + +for candidate in "$@" +do + if is_for_unstable "$candidate" + then + printf '%s\0' "$candidate" + fi +done | +xargs -0 mergechanges -f -- cgit v1.2.1