emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes to emacs/info/dir,v


From: Glenn Morris
Subject: Re: Changes to emacs/info/dir,v
Date: Thu, 07 Feb 2008 18:12:02 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Glenn Morris wrote:

> It also ought to be simple to write something to warn about missing
> dir entries.

Eg `make check-info-dir':

*** Makefile.in 16 Jan 2008 04:09:42 -0000      1.338
--- Makefile.in 7 Feb 2008 23:10:34 -0000
***************
*** 779,784 ****
--- 779,802 ----
        -(cd doc/misc; $(MAKE) $(MFLAGS) info)
        -(cd doc/lispref; $(MAKE) $(MFLAGS) info)
        -(cd doc/lispintro; $(MAKE) $(MFLAGS) info)
+ 
+ # The info/dir file must be updated by hand when new manuals are added.
+ check-info-dir: info
+       cd info ; \
+       missing= ; \
+       for file in *; do \
+         test -f "$${file}" || continue ; \
+         case $${file} in \
+           *-[0-9]*|COPYING|dir) continue ;; \
+         esac ; \
+         grep -q -F ": ($${file})." dir || missing="$${missing} $${file}" ; \
+       done ; \
+       if test -n "$${missing}"; then \
+         echo "Missing info/dir entries: $${missing}" ; \
+         exit 1 ; \
+       fi ; \
+       echo "info/dir is OK"
+ 
  dvi:
        (cd doc/emacs; $(MAKE) $(MFLAGS) dvi)
        (cd doc/misc; $(MAKE) $(MFLAGS) dvi)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]