f168f82078354247af10c0597c3870c10e874eed
[privoxy.git] / debian / patches / 10_backup_doc.dpatch
1 #! /bin/sh -e
2 ## 10_backup_doc.dpatch by Roland Rosenfeld <roland@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Backup the upstream versions of all generated documentation
6
7 dpatch_patch ()
8 {
9     tar cf debian/patched/doc.bak.tar README
10     for i in doc/source doc/text doc/webserver doc/pdf \
11              INSTALL AUTHORS privoxy.1
12     do
13        if [ -e $i ]
14        then
15            tar rf debian/patched/doc.bak.tar $i
16        fi
17     done
18 }
19
20 dpatch_unpatch ()
21 {
22     rm -rf doc/pdf
23     tar xf debian/patched/doc.bak.tar
24 }
25
26 DPATCH_LIB_NO_DEFAULT=1
27
28 . /usr/share/dpatch/dpatch.lib.sh