Commit 2f1064ff authored by Elliot Lee's avatar Elliot Lee
Browse files

Copy the man/info filters from gnome-core so I can start modifying them as



Copy the man/info filters from gnome-core so I can start modifying them as needed.

Make man2html output man: URL's in desired format.

Install the page mapping file.

Use it for info pages as well as man pages.

Don't expand tree by default.
parent 47964f87
SUBDIRS=gnome-man2html2 gnome-info2html2
......@@ -3,15 +3,11 @@
INCLUDES = \
-I$(includedir) \
-I$(top_srcdir)/intl -I$(top_builddir)/intl \
$(GNOME_INCLUDEDIR)
$(GNOME_CFLAGS)
LDADD = \
$(GNOME_LIBDIR) \
$(GNOMEUI_LIBS) \
$(INTLLIBS)
bin_PROGRAMS = gnome-info2html
gnome_info2html_SOURCES = main.c parse.c utils.c html.c data.h html.h parse.h utils.h version.h
$(GNOMEUI_LIBS)
bin_PROGRAMS = gnome-info2html2
gnome_info2html2_SOURCES = main.c parse.c utils.c html.c data.h html.h parse.h utils.h version.h
......@@ -7,9 +7,9 @@ INCLUDES = \
LDADD =
bin_PROGRAMS = gnome-man2html
bin_PROGRAMS = gnome-man2html2
gnome_man2html_SOURCES = gnome-man2html.c
gnome_man2html2_SOURCES = gnome-man2html.c
#CFLAGS += -Wall
gnome-man2html
gnome-man2html2
--------------
Modified version of gnome-man2html2 by Elliot Lee <sopwith@redhat.com>
- slight changes made to the man: URL's output, but otherwise it works
perfectly.
Modified version of VH-Man2html by Michael Fulbright <msf@redhat.com>
Please do not contact the individuals below if you have problems with
gnome-man2htm, instead send me an email and I'll try to help.
gnome-man2html2, instead send me an email and I'll try to help.
The README for the original program lies below...
......
......@@ -4,8 +4,19 @@
**
** Permission is granted to distribute, modify and use this program as long
** as this comment is not removed or changed.
* In addition,
*
* Copyright (C) 1999 Red Hat Software
* Changes licensed under the GNU Public License.
*/
/*
* gnome-man2html2
* This version modified for GNOME - December 1999
* Elliot Lee <sopwith@redhat.com>
* May this code live forever :)
*/
/*
* gnome-man2html
* This version modified for GNOME - February 1998
......@@ -551,16 +562,16 @@ add_links(char *c)
"file:/usr/man/man%c/%s.%c\">%s</A>",
sec, h, sec, h);
#else
if (subsec)
printf("<A HREF=\"man:"
"%s(%c%c)\">%s</A>",
h, sec,
tolower(subsec), h);
else
printf("<A HREF=\"man:"
"%s(%c)\">%s</A>",
h, sec, h);
/* The code used to take
'subsec' into account, but
(a) 'subsec' can be more than
one character (b) We have
no use for that information */
printf("<A HREF=\"man:"
"%s.%c\">%s</A>",
h, sec,
h);
#endif
*e=t;
c=e;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment