| 1 |
#!/bin/sh |
| 2 |
cat <<EOF |
| 3 |
usr/bin/perldoc |
| 4 |
usr/share/perl/*/pod |
| 5 |
usr/share/man/man1/perldoc.1 |
| 6 |
EOF |
| 7 |
|
| 8 |
cd debian/tmp |
| 9 |
|
| 10 |
# everything else than section 1 goes as-is |
| 11 |
find usr/share/man/ -maxdepth 1 -mindepth 1 -not -name man1 |
| 12 |
|
| 13 |
# section 1 manual pages for installed programs go in perl not perl-doc |
| 14 |
find usr/share/man/man1 -type f -printf "%f\n" | \ |
| 15 |
while read man; do |
| 16 |
prog=$(echo $man | sed 's/\.1$//') |
| 17 |
if ! test -f usr/bin/$prog; then |
| 18 |
echo usr/share/man/man1/$man |
| 19 |
fi |
| 20 |
done |