blob: dfad66b38bba01077f63543207b84daed930ba29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#! /bin/bash
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# See the COPYING and AUTHORS files for more details.
. patchfns 2>/dev/null ||
. /usr/lib/patch-scripts/patchfns 2>/dev/null ||
. $PATCHSCRIPTS_LIBDIR/patchfns 2>/dev/null ||
{
echo "Impossible to find my library 'patchfns'."
echo "Check your install, or go to the right directory"
exit 1
}
usage()
{
echo "Usage: rolled-up-patch"
exit 1
}
if [ $# != 0 ]
then
usage
fi
RUP=$(mktemp /tmp/rup-XXXXXX)
rm -f $RUP
for i in $(cat applied-patches)
do
patch_name=$(stripit $i)
files_in_patch $patch_name
done | sort | uniq > $RUP
kdiff $(cat $RUP)
rm -f $RUP
|