#!/bin/sh

# Script to find man pages which already exist in some other package
# Requires working (and up to date) apt-file

make latest

cd latest

find man* -type f | while read manpage ; do
    pkg="`apt-file search "/usr/share/man/cs/$manpage" | sed 's/: .*//'`"
    if [ ! -z "$pkg" ] ; then
	echo "$manpage is already in $pkg"
    fi
done
    
