Man page export from the wrapper binary.
[alexxy/gromacs.git] / src / gromacs / onlinehelp / wman.cpp
index 4e9e2e848d03fd876b91d19c8b5ec61e44ecb2ff..af7ec6e08f709a2e6da13957c42ad876c9d64487 100644 (file)
@@ -575,12 +575,6 @@ static void write_nroffman(FILE *out,
     int  i;
     char tmp[256];
 
-
-    fprintf(out, ".TH %s 1 \"%s\" \"\" \"GROMACS suite, %s\"\n", program, mydate(tmp, 255), GromacsVersion());
-    fprintf(out, ".SH NAME\n");
-    fprintf(out, "%s@DESC@\n\n", program);
-    fprintf(out, ".B %s\n", GromacsVersion());
-
     fprintf(out, ".SH SYNOPSIS\n");
     fprintf(out, "\\f3%s\\fP\n", program);
 
@@ -665,10 +659,6 @@ static void write_nroffman(FILE *out,
             fprintf(out, "\\- %s\n\n", check_nroff(bugs[i]));
         }
     }
-
-    fprintf(out, ".SH SEE ALSO\n.BR gromacs(7)\n\n");
-    fprintf(out, "More information about \\fBGROMACS\\fR is available at <\\fIhttp://www.gromacs.org/\\fR>.\n");
-
 }
 
 char *check_tty(const char *s)
@@ -1038,7 +1028,8 @@ void write_man(const char *mantp,
     }
     if (strcmp(mantp, "nroff") == 0)
     {
-        write_nroffman(out, program, nldesc, desc, nfile, fnm, npar, par, nbug, bugs, links);
+        write_nroffman(out, context->moduleDisplayName(), nldesc, desc,
+                       nfile, fnm, npar, par, nbug, bugs, links);
     }
     if (strcmp(mantp, "help") == 0)
     {