Changeset 10704
- Timestamp:
- 2005-10-07T10:01:18+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/expand_macros.pl
r10607 r10704 3 3 ################################################################################## 4 4 # # 5 # expand_macros.pl -- recursively expand greenstone macros / 1080805 - 4010905 #5 # expand_macros.pl -- recursively expand greenstone macros / 1080805 - 1050905 # 6 6 # # 7 7 # Copyright (C) 2005 Jens Wille <j_wille at gmx.net> # … … 63 63 # KNOWN BUGS: 64 64 # 65 # - (paged-)read will quit the program if not scrolled until the end of the 66 # (sufficiently large) file 65 # - for a sufficiently large file (> 12288 bytes == 12 k) (paged-)read will quit 66 # the program if not scrolled until the end of the file => SIGPIPE: broken pipe! 67 # SOLVED: the PIPE signal will simply be IGNOREd 67 68 # 68 69 … … 84 85 85 86 my $NAME = basename $0; 86 my $VERSION = '0.2 ';87 my $VERSION = '0.21'; 87 88 88 89 … … 135 136 'interactive' => 0, 136 137 'paged' => 0, 137 'pager' => 'less',138 'histfile' => catfile( tmpdir, 'expand_macros.hist'),138 'pager' => $ENV{'PAGER'} || 'less', 139 'histfile' => catfile($ENV{'GSDLTMPDIR'} || tmpdir, 'expand_macros.hist'), 139 140 'histsize' => 100, 140 141 'macro_dirs' => [catdir($ENV{'GSDLHOME'}, 'macros')], … … 356 357 # interactive browse mode 357 358 359 # ignore 'broken pipe' error 360 $SIG{'PIPE'} = 'IGNORE'; 361 358 362 # get the pager executable 359 363 # no need to test if not in "paged" mode … … 1109 1113 $ARG{'paged'} = 1 if $paged; 1110 1114 1111 print_output("$file:\n\n", @lines); 1115 #print_output("$file:\n\n", @lines); 1116 print_output(@lines); 1112 1117 1113 1118 $ARG{'paged'} = $previous_paged;
Note:
See TracChangeset
for help on using the changeset viewer.