address lintian duplicate-files warning
$ lintian ../cppad_2014.03.30-1_all.deb
X: cppad: duplicate-files usr/share/doc/cppad/doc/cppad.xml usr/share/doc/cppad/doc/index.xml
Barak A. Pearlmutter
10 years ago
5 | 5 | # web documentation uses .xml extension |
6 | 6 | override_dh_compress: |
7 | 7 | dh_compress -X.xml |
8 | ||
9 | override_dh_link: | |
10 | cd debian/cppad/usr/share/doc/cppad/doc && \ | |
11 | if cmp cppad.xml index.xml ; then \ | |
12 | echo Identical copies: index.xml cppad.xml && \ | |
13 | rm --verbose index.xml && \ | |
14 | ln --symbolic --verbose cppad.xml index.xml ; \ | |
15 | fi | |
16 | dh_link |