6 [ ! -e debian/patches/$1 ]
10 trap "rm -rf $D" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15
15 debian/rules setup || debian/rules patch || debian/rules apply-patches || debian/rules apply-dpatches || debian/rules unpack || debian/rules patch-stamp
16 [ -z "`find -name '*.rej'`" ] || {
17 echo 'there are rejections from the current patches, aborting' >&2
20 find -name '*.orig' | xargs rm || true
24 echo 'make your modifications in this shell and exit it successfully'
26 find -name '*.orig' | xargs rm || true
28 diff -Nurp orig new > "$CWD/debian/patches/$1"