aboutsummaryrefslogtreecommitdiff
path: root/bin/pkgdiffs
blob: 3c01f93d92c9e6b3a2313a9d6c604de630d91bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# pkgdiffs -- concatenate pkgdiffs

#
# To amend an existing patch, specify -a.
#
[ x"$1" = "-a" ] || pkgdiff "${1%.orig}"
shift

for f in "$@"; do
	pkgdiff "${f%.orig}" | sed -n '2,$p'
done