comparison scripts/help/print_usage.m @ 8768:e0fbf17a17bb

__makeinfo__.m: rename from makeinfo.m
author John W. Eaton <jwe@octave.org>
date Mon, 16 Feb 2009 17:01:17 -0500
parents 52956d669506
children f3df413338c5
comparison
equal deleted inserted replaced
8767:026c6732ec7a 8768:e0fbf17a17bb
55 error ("print_usage: internal error: unsupported help text format: '%s'\n", format); 55 error ("print_usage: internal error: unsupported help text format: '%s'\n", format);
56 endswitch 56 endswitch
57 57
58 ## Raise the final error 58 ## Raise the final error
59 if (status != 0) 59 if (status != 0)
60 warning ("makeinfo: Texinfo formatting filter exited abnormally"); 60 warning ("print_usage: Texinfo formatting filter exited abnormally");
61 warning ("makeinfo: raw Texinfo source of help text follows...\n"); 61 warning ("print_usage: raw Texinfo source of help text follows...\n");
62 endif 62 endif
63 63
64 error ("Invalid call to %s. Correct usage is:\n\n%s\n%s", 64 error ("Invalid call to %s. Correct usage is:\n\n%s\n%s",
65 name, usage_string, __additional_help_message__ ()); 65 name, usage_string, __additional_help_message__ ());
66 endfunction 66 endfunction
99 else 99 else
100 [retval, status] = get_usage_plain_text (help_text, max_len); 100 [retval, status] = get_usage_plain_text (help_text, max_len);
101 endif 101 endif
102 102
103 ## Run makeinfo to generate plain text 103 ## Run makeinfo to generate plain text
104 [retval, status] = makeinfo (buffer, "plain text"); 104 [retval, status] = __makeinfo__ (buffer, "plain text");
105 endfunction 105 endfunction
106 106
107 function [retval, status] = get_usage_html (help_text, max_len) 107 function [retval, status] = get_usage_html (help_text, max_len)
108 ## Strip tags 108 ## Strip tags
109 [help_text, status] = strip_html_tags (help_text); 109 [help_text, status] = strip_html_tags (help_text);