[PATCH] Fix info directory entry

Jon TURNEY jon.turney@dronecode.org.uk
Fri Mar 13 15:58:00 GMT 2015


I have no clue about info pages, but the attached patch seems to be 
needed for 'info libc' and 'info libm' to work as expected, after the 
newlib info has been installed using install-info.
-------------- next part --------------
From 2bb8d6edd96fd7eb4d82f61ce6da360ccebe670a Mon Sep 17 00:00:00 2001
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Date: Thu, 12 Mar 2015 17:22:23 +0000
Subject: [PATCH] Fix newlib texinfo source so 'info libc' and 'info libm' work

If the newlib .info files are installed using install-info, 'info libc' and
'info libm' don't work.

This seems to be due to the formatting of the directory entry line not being
quite right, so fix that.

Also use @direntry texinfo command, rather than writing .info directory entry
literally.

Also use @dircategory texinfo command to place into 'Newlib' category, rather
than ending up in 'Miscellaneous'

newlib/ChangeLog:

2015-03-13  Jon TURNEY  <jon.turney@dronecode.org.uk>

	* libc/libc.texinfo: Fix directory entry.
	* libm/libm.texinfo: Ditto.
---
 newlib/libc/libc.texinfo | 7 ++++---
 newlib/libm/libm.texinfo | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/newlib/libc/libc.texinfo b/newlib/libc/libc.texinfo
index 82f283c..6216c99 100644
--- a/newlib/libc/libc.texinfo
+++ b/newlib/libc/libc.texinfo
@@ -4,9 +4,10 @@
 
 @ifinfo
 @format
-START-INFO-DIR-ENTRY
-* libc::                        The ANSI C library.
-END-INFO-DIR-ENTRY
+@dircategory Newlib
+@direntry
+* libc: (libc).                 The ANSI C library.
+@end direntry
 @end format
 @end ifinfo
 
diff --git a/newlib/libm/libm.texinfo b/newlib/libm/libm.texinfo
index f259848..5c28975 100644
--- a/newlib/libm/libm.texinfo
+++ b/newlib/libm/libm.texinfo
@@ -4,9 +4,10 @@
 
 @ifinfo
 @format
-START-INFO-DIR-ENTRY
-* libm::                        An ANSI-C conforming mathematical library.
-END-INFO-DIR-ENTRY
+@dircategory Newlib
+@direntry
+* libm: (libm).                 An ANSI-C conforming mathematical library.
+@end direntry
 @end format
 @end ifinfo
 
-- 
2.1.4



More information about the Newlib mailing list