* mdocml: By default, man.cgi should compile with -static (this was unset
@ 2011-12-07 11:52 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-12-07 11:52 UTC (permalink / raw)
To: source
Log Message:
-----------
By default, man.cgi should compile with -static (this was unset by mistake).
Also, set a custom CSS for man.cgi catman files.
Modified Files:
--------------
mdocml:
Makefile
cgi.c
Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -Lcgi.c -Lcgi.c -u -p -r1.10 -r1.11
--- cgi.c
+++ cgi.c
@@ -423,7 +423,21 @@ resp_search(struct res *r, size_t sz, vo
return;
}
- resp_begin_html(200, NULL);
+ resp_begin_http(200, NULL);
+ puts("<!DOCTYPE HTML PUBLIC " "\n"
+ " \"-//W3C//DTD HTML 4.01//EN\"" "\n"
+ " \"http://www.w3.org/TR/html4/strict.dtd\">" "\n"
+ "<HTML>" "\n"
+ " <HEAD>" "\n"
+ " <META HTTP-EQUIV=\"Content-Type\" " "\n"
+ " CONTENT=\"text/html; charset=utf-8\">" "\n"
+ " <LINK REL=\"stylesheet\" HREF=\"/catman.css\"" "\n"
+ " TYPE=\"text/css\" media=\"all\">" "\n"
+ " <TITLE>System Manpage Reference</TITLE>" "\n"
+ " </HEAD>" "\n"
+ " <BODY>" "\n"
+ "<!-- Begin page content. //-->");
+
resp_searchform((const struct req *)arg);
if (0 == sz)
@@ -614,9 +628,9 @@ format(const char *file)
return;
}
- snprintf(opts, sizeof(opts), "style=/style.css,"
+ snprintf(opts, sizeof(opts), "style=/man.css,"
"man=%s/search.html?sec=%%S&expr=%%N,"
- "includes=/cgi-bin/man.cgi/usr/include/%%I",
+ /*"includes=/cgi-bin/man.cgi/usr/include/%%I"*/,
progname);
mparse_result(mp, &mdoc, &man);
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.385
retrieving revision 1.386
diff -LMakefile -LMakefile -u -p -r1.385 -r1.386
--- Makefile
+++ Makefile
@@ -30,7 +30,7 @@ CFLAGS += -DUSE_WCHAR
#CFLAGS += -DUSE_MANPATH
# If your system supports static binaries only, uncomment this.
-#STATIC = -static
+STATIC = -static
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-07 11:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07 11:52 mdocml: By default, man.cgi should compile with -static (this was unset kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).