2 # $Id: script_template 17 2010-10-08 17:47:31Z xiaoranzzz $
10 $PROGRAM_DIR =~ s/[^\/\\]+$//;
11 $PROGRAM_DIR = "./" unless($PROGRAM_DIR);
13 map "$PROGRAM_DIR$_",qw{modules lib
../modules
..lib
};
17 my @OPTIONS = qw
/help|h|? version|ver edit-me manual|man/;
23 require MyPlace
::Usage
;
24 Getopt
::Long
::GetOptions
(\
%OPTS,@OPTIONS);
25 MyPlace
::Usage
::Process
(\
%OPTS,$VERSION);
30 @logfile = ( $ENV{HOME
} . "/.tucan/tucan.log*");
35 #print STDERR "$_:\n";
36 foreach my $file (glob($_)) {
37 #print STDERR "\t$file\n";
39 open FI
,"<",$file or die("$!\n");
42 if(m/:\s+(http:\/\
/[^\s]+)/) {
51 print join("\n",keys %URLS),"\n";
59 tucan-extract-log - PERL script
63 tucan-extract-log [options] ...
71 Print version infomation.
75 Print a brief help message and exits.
77 =item B<--manual>,B<--man>
79 View application manual
83 Invoke 'editor' against the source
93 2010-10-26 xiaoranzzz <xiaoranzzz@myplace.hell>
99 xiaoranzzz <xiaoranzzz@myplace.hell>