#! /bin/sh -e
## 02_remove_dup_refs_in_info.dpatch by Masayuki Hatta <mhatta@debian.org>
##
## All lines beginning with \`## DP:' are a description of the patch.
## DP: Remove duplicate references in info.

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
        -patch) patch -f --no-backup-if-mismatch --dry-run -p1 < $0 && patch -f --no-backup-if-mismatch -p1 < $0
;;
        -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

diff -urN ebnetd-1.0.orig/doc/ebnetd.texi ebnetd-1.0/doc/ebnetd.texi
--- ebnetd-1.0.orig/doc/ebnetd.texi	2003-09-03 20:26:39.000000000 +0900
+++ ebnetd-1.0/doc/ebnetd.texi	2006-10-08 13:01:01.000000000 +0900
@@ -9,8 +9,6 @@
 @dircategory CD-ROM Book Utilities
 @direntry
 * EBNETD: (ebnetd).             Network EB Library server.
-* NDTPD: (ndtpd).               Server for accessing CD-ROM books with NDTP.
-* ebHTTPD: (ebhttpd).           Server for accessing CD-ROM books with HTTP.
 @end direntry
 
 @ifinfo
diff -urN ebnetd-1.0.orig/doc-ja/ebnetd-ja.texi ebnetd-1.0/doc-ja/ebnetd-ja.texi
--- ebnetd-1.0.orig/doc-ja/ebnetd-ja.texi	2003-09-03 20:26:39.000000000 +0900
+++ ebnetd-1.0/doc-ja/ebnetd-ja.texi	2006-10-08 13:01:10.000000000 +0900
@@ -9,8 +9,6 @@
 @dircategory CD-ROM Book Utilities
 @direntry
 * EBNETD: (ebnetd).             Network EB Library server.
-* NDTPD: (ndtpd).               Server for accessing CD-ROM books with NDTP.
-* ebHTTPD: (ebhttpd).           Server for accessing CD-ROM books with HTTP.
 @end direntry
 
 @ifinfo
