blob: 56b80cdc2bd210a8aa52141188a3dfd8cb785cc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|