1 |
it isn't uncommon for people to want to force the patch (-p#) or fuzz (-f#) |
2 |
level when applying specific patches. but it is unusual that they want to kill |
3 |
off the extra options: -g0 -E --no-backup-if-mismatch. so i'd like to split |
4 |
these off and improve the epatch API. |
5 |
|
6 |
# Extra options to pass to `patch` (such as -p1). |
7 |
EPATCH_OPTS="" |
8 |
# Common options to pass to `patch` (you probably shouldn't need |
9 |
# to change these at all). |
10 |
EPATCH_COMMON_OPTS="-g0 -E --no-backup-if-mismatch" |
11 |
|
12 |
and then i'll try to extend `epatch` so the first set of arguments can |
13 |
implicitly set EPATCH_OPTS for that one patch: |
14 |
epatch -p1 "${FILESDIR}"/${P}-foo.patch |
15 |
this is much nicer than the current: |
16 |
EPATCH_OPTS="-p1" epatch "${FILESDIR}"/${P}-foo.patch |
17 |
|
18 |
i can't see this causing any issues, but considering everyone uses `epatch`, |
19 |
best to ask first. |
20 |
-mike |