Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
[privoxy.git] / debian / patches / 11_backup_autotools.dpatch
1 #! /bin/sh -e
2 ## 11_backup_autotools.dpatch by Ralf Treinen <treinen@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: replace all config.{guess,sub} by the vesion installed in
6 ## DP: /usr/share/misc
7
8 dpatch_patch ()
9 {
10         find . -name config.guess -o -name config.sub \
11                 | tar cf debian/patched/config.guess+sub.tar -T -
12         find . -name config.guess \
13                 -exec ln -sf /usr/share/misc/config.guess '{}' \;
14         find . -name config.sub \
15                 -exec ln -sf /usr/share/misc/config.sub '{}' \;
16 }
17
18 dpatch_unpatch ()
19 {
20         tar xf debian/patched/config.guess+sub.tar
21 }
22
23 DPATCH_LIB_NO_DEFAULT=1
24
25 . /usr/share/dpatch/dpatch.lib.sh