/[wait]/trunk/script/sman
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/script/sman

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

cvs-head/script/sman revision 65 by laperla, Wed Jan 23 12:22:54 2002 UTC trunk/script/sman revision 91 by dpavlin, Tue May 25 15:57:50 2004 UTC
# Line 1  Line 1 
1  #!perl -w  #!/usr/bin/perl -w
2  #                              -*- Mode: Perl -*-  #                              -*- Mode: Perl -*-
3  # $Basename: sman $  # $Basename: sman $
4  # $Revision: 1.14 $  # $Revision: 1.14 $
# Line 18  use Getopt::Long; Line 18  use Getopt::Long;
18  use Fcntl qw(O_RDONLY);  use Fcntl qw(O_RDONLY);
19  use Config;  use Config;
20    
21    use lib '/data/wait/lib';
22    
23  require WAIT::Config;  require WAIT::Config;
24  require WAIT::Database;  require WAIT::Database;
25  require WAIT::Query::Base;  require WAIT::Query::Base;
# Line 71  if ($Config::Config{'archname'} eq 'i586 Line 73  if ($Config::Config{'archname'} eq 'i586
73  }  }
74    
75  my $pager =  ($OPT{pager}) ? \&pager : \&less;  my $pager =  ($OPT{pager}) ? \&pager : \&less;
76    $pager =  \&less;       # force pager usage
77  my $OUT   = $term->OUT;  my $OUT   = $term->OUT;
78    
79  my $st = 1;  my $st = 1;
# Line 190  sub help { Line 193  sub help {
193   q              Exit from $0   q              Exit from $0
194   l              redisplay last ranking   l              redisplay last ranking
195  Other input is tried as wais query.  Other input is tried as wais query.
196  The following fields are known: $idb  The following fields for table '$OPT{table}' are known: $idb
197  ] ;  ] ;
198  }  }
199    
# Line 233  sub display { Line 236  sub display {
236  # WHAT DOES HE DO HERE? ULI???  # WHAT DOES HE DO HERE? ULI???
237  # Re: some indexing scripts did use pathnames relative to the table directory  # Re: some indexing scripts did use pathnames relative to the table directory
238  # especially the cpanwait script does this. uli  # especially the cpanwait script does this. uli
239  #  if ($tdid !~ m(^/)) {    if ($tdid !~ m(^/)) {
240  #    $tdid = $tb->dir . '/' . $tdid;      $tdid = $tb->dir . '/' . $tdid;
241  #  }    }
242    
243    # The main task of all that follows from here is highlighting. WAIT    # The main task of all that follows from here is highlighting. WAIT
244    # is designed to make it possible to show the user why a certain    # is designed to make it possible to show the user why a certain

Legend:
Removed from v.65  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.26