9 our $PROGRAM_DIR = $ENV{XR_PERL_SOURCE_DIR
};
10 unless($PROGRAM_DIR) {
12 $PROGRAM_DIR =~ s/[^\/\\]+$//;
13 $PROGRAM_DIR =~ s/\/+$//;
14 $PROGRAM_DIR = "." unless($PROGRAM_DIR);
17 map "$PROGRAM_DIR/$_",qw{modules lib
../modules
..lib
};
21 my @OPTIONS = qw
/help|h|? version|ver edit-me manual|man/;
26 require MyPlace
::Usage
;
27 Getopt
::Long
::GetOptions
(\
%OPTS,@OPTIONS);
28 MyPlace
::Usage
::Process
(\
%OPTS,$VERSION);
32 require MyPlace
::Usage
;
33 MyPlace
::Usage
::PrintHelp
();
44 push @r,"file://" . $_;
47 push @r,"file://" . $cwd . '/' . $_;
51 print join(" ",@r),"\n";
74 Print version infomation.
78 Print a brief help message and exits.
80 =item B<--manual>,B<--man>
82 View application manual
86 Invoke 'editor' against the source
96 2010-11-21 00:52 xiaoranzzz <xiaoranzzz@myplace.hell>
102 xiaoranzzz <xiaoranzzz@myplace.hell>