diff options
Diffstat (limited to 'img/dist/IM/imsort.in')
| -rw-r--r-- | img/dist/IM/imsort.in | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/img/dist/IM/imsort.in b/img/dist/IM/imsort.in index a99836e0..d533e8c7 100644 --- a/img/dist/IM/imsort.in +++ b/img/dist/IM/imsort.in @@ -5,7 +5,7 @@ ### ### Author: Internet Message Group <img@mew.org> ### Created: Jul 2, 1997 -### Revised: Oct 28, 2003 +### Revised: Jul 4, 2004 ### BEGIN { @@ -13,9 +13,15 @@ BEGIN { @im_src_siteperl@ }; -my $VERSION = "imsort version 20031028(IM146)"; - $Prog = 'imsort'; +my $VERSION_DATE = "20040704"; +my $VERSION_NUMBER = "147"; +my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})"; +my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE} +Copyright (C) 1999 IM developing team +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +"; ## ## Require packages @@ -29,7 +35,7 @@ use integer; use strict; use vars qw($Prog $EXPLANATION @OptConfig $opt_field $opt_mode $opt_noharm $opt_src - $opt_verbose $opt_debug $opt_help); + $opt_verbose $opt_debug $opt_help $opt_version); ## ## Environments @@ -42,13 +48,14 @@ Usage: $Prog [OPTIONS] FOLDER [MSGS...] "; @OptConfig = ( - 'src;F;;' => "Set source folder.", - 'field;s;date;'=> "Sort by the specified field.", - 'mode;s;date;' => "Set sort mode to date, num, text or ml.", - 'noharm;b;;' => "Display the commands but do not actually execute them.", - 'verbose;b;;' => 'With verbose messages.', - 'debug;d;;' => "With debug message.", - 'help;b;;' => "Show this message.", + 'src;F;;' => "Set source folder", + 'field;s;date;'=> "Sort by the specified field", + 'mode;s;date;' => "Set sort mode to date, num, text or ml", + 'noharm;b;;' => "Display the commands but do not actually execute them", + 'verbose;b;;' => 'With verbose messages', + 'debug;d;;' => "With debug message", + 'help;b;;' => "Display this help and exit", + 'version,V;b;;' => "Output version information and exit", ); ## @@ -58,8 +65,8 @@ Usage: $Prog [OPTIONS] FOLDER [MSGS...] init_opt(\@OptConfig); read_cfg(); read_opt(\@ARGV); # help? +print("${VERSION_INFORMATION}") && exit $EXIT_SUCCESS if $opt_version; help($EXPLANATION) && exit $EXIT_SUCCESS if $opt_help; - debug_option($opt_debug) if $opt_debug; ## @@ -257,6 +264,10 @@ Print debug messages when running. Display help message and exit. +=item I<--version> + +Output version information and exit. + =back =head1 COPYRIGHT |
