summaryrefslogtreecommitdiff
path: root/ACE/debianbuild/patches/00patch-opts
blob: d49694774c8a89cb3a3b3d8147effa1bc931dfef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- shell-script -*- #vim:syntax=sh
# By default dpatch works with -p1 (patch level 1) which works
# fine with one working directory, e.g. ACE_wrappers. While
# two working directories exist the default -p1 makes thinks
# complicate. Instaed of recreate patches we overwrite the
# dpatch_patch and dpatch_unpatch functions with -p0.
# See /usr/share/dpatch/dpatch.lib.sh for more implementation
# details on this issue.
#                        -- Raphael Bossek <bossekr@debian.org>

DPATCH_LIB_NO_DEFAULT="no"

dpatch_patch ()
{
  patch -p0 $*
}

dpatch_unpatch ()
{
  patch -p0 -R $*
}