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 language|lang zh en/;
22 require MyPlace
::Usage
;
23 Getopt
::Long
::GetOptions
(\
%OPTS,@OPTIONS);
24 MyPlace
::Usage
::Process
(\
%OPTS,$VERSION);
28 require MyPlace
::Usage
;
29 MyPlace
::Usage
::PrintHelp
();
31 $OPTS{language
}='zh' if($OPTS{zh
});
32 $OPTS{language
}='en' if($OPTS{en
});
34 my $content_title = 'content';
35 if($OPTS{language
} and $OPTS{language
} eq 'zh') {
36 $content_title = "目录";
43 # print STDERR "Input filenames please.\n";
50 die("Usage:$0 [options] file1 [file2...]\n") unless(@files);
51 print STDOUT
"$content_title\n\n";
57 $title =~ s/\.[^.]*$//;
58 print STDOUT
" $title\n"
62 open FI
,"<",$_ or die("$!\n");
65 $title =~ s/\.[^.]*$//;
66 print STDOUT
"\n《$title》\n";
77 epub_merge_text - merge texts and build a content according to each file name
81 epub_merge_text [options] ...
89 Print version infomation.
93 Print a brief help message and exits.
95 =item B<--manual>,B<--man>
97 View application manual
101 Invoke 'editor' against the source
111 2010-06-08 xiaoranzzz <xiaoranzzz@myplace.hell>
117 xiaoranzzz <xiaoranzzz@myplace.hell>