summaryrefslogtreecommitdiff
path: root/src/devices/grodvi
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-10-13 19:53:45 +0000
committerwlemb <wlemb>2003-10-13 19:53:45 +0000
commitd6c521978249065d83f7e6ac9a933560a38e0973 (patch)
tree6b0521ea39875fadf89fe5bec465cd91d0ee332b /src/devices/grodvi
parent0826c033b6b1e930d69171cd54ecd27da02d0427 (diff)
downloadgroff-d6c521978249065d83f7e6ac9a933560a38e0973.tar.gz
* src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
src/roff/troff/input.cc (usage): Updated. * NEWS, doc/groff.texinfo: Updated. * src/libs/libgroff/searchpath.cpp (search_path::open_file_cautious): New function which also handles `-' as stdin and stdout depending on the access mode. * src/include/searchpath.h (search_path): Updated. * src/devices/grops/ps.cpp (main): Handle new `-I' switch. * src/devices/grops/ps.h: Include `searchpath.h'. * src/devices/grops/psrm.cpp (resource_manager::supply_resource): Open resource file with `include_search_path.open_file_cautious'. * src/devices/grops/grops.man: Document new `-I' switch. * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp (main), src/devices/grolj4/lj4.cpp (main), src/devices/grotty/tty.cpp (main): Ignore new `-I' switch. * src/preproc/soelim/soelim.cpp (include_list_length, include_list): Replaced with... (include_search_path): New global variable. (include_path_append): Removed. (main): Use `include_search_path.command_line_dir' to handle `-I'. (do_file): Simplify, using new `include_search_path.open_file_cautious'. * src/roff/groff/groff.cpp (print_commands): Accept file handle as parameter. (main): Pass arguments to `-I' to both troff and devices. Improve handling of `-V'. * src/roff/groff/groff.man: Document changes to -I and -V. * src/roff/troff/input.cpp (include_search_path): New global variable. (next_file, source, ps_bbox_request, transparent_file, process_input_file): Use new `include_search_path.open_file_cautious'. (main) Handle `-I' switch. * src/roff/troff/node.cpp (troff_output_file::really_copy_file): Use new `include_search_path.open_file_cautious'. * src/roff/troff/node.h: New extern symbol `include_search_path'. * src/roff/troff/troff.man: Document new `-I' switch.
Diffstat (limited to 'src/devices/grodvi')
-rw-r--r--src/devices/grodvi/dvi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/grodvi/dvi.cpp b/src/devices/grodvi/dvi.cpp
index df169390..7a567412 100644
--- a/src/devices/grodvi/dvi.cpp
+++ b/src/devices/grodvi/dvi.cpp
@@ -915,7 +915,7 @@ int main(int argc, char **argv)
{ "version", no_argument, 0, 'v' },
{ NULL, 0, 0, 0 }
};
- while ((c = getopt_long(argc, argv, "dF:lp:vw:", long_options, NULL))
+ while ((c = getopt_long(argc, argv, "dF:I:lp:vw:", long_options, NULL))
!= EOF)
switch(c) {
case 'd':
@@ -927,6 +927,9 @@ int main(int argc, char **argv)
case 'F':
font::command_line_font_dir(optarg);
break;
+ case 'I':
+ // ignore include search path
+ break;
case 'p':
if (!font::scan_papersize(optarg, 0,
&user_paper_length, &user_paper_width))