11
$ sed -e 's/3/3a/' foo.orig > foo
12
$ diff -u foo.orig foo > foo.diff
15
$ patch-wrapper -s -p0 < foo.diff
17
> Removing patch patches/foo.diff
19
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
21
$ patch-wrapper --backup -B xxx/ -s -p0 < foo.diff
25
> Removing patch patches/foo.diff
27
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
29
$ patch-wrapper -s -p0 -i foo.diff
31
> Removing patch patches/foo.diff
33
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
35
$ patch-wrapper -p0 < foo.diff
38
> Removing patch patches/foo.diff
40
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
42
$ mv foo.diff somewhere/
43
$ patch-wrapper -p0 < somewhere/foo.diff
46
> Removing patch patches/somewhere/foo.diff
48
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
50
$ patch-wrapper -p0 -i somewhere/foo.diff
53
> Removing patch patches/somewhere/foo.diff
55
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
57
$ sed -e 's/5/5b/' foo > foo.new
59
$ patch-wrapper -p0 < somewhere/foo.diff
61
> Hunk #1 succeeded at 1 with fuzz 1.
69
> Removing patch patches/somewhere/foo.diff
71
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}