updated git and svn scripts
[xrzperl.git] / r-curl.pl
blob2d3cb0830bff976646fdbbe02a6ef35b0ec2023f
1 #!/usr/bin/perl -w
2 # $Id: script_template 17 2010-10-08 17:47:31Z xiaoranzzz $
3 use strict;
4 require v5.10.0;
5 our $VERSION = 'v0.1';
7 BEGIN
9 my $PROGRAM_DIR = $0;
10 $PROGRAM_DIR =~ s/[^\/\\]+$//;
11 $PROGRAM_DIR = "./" unless($PROGRAM_DIR);
12 unshift @INC,
13 map "$PROGRAM_DIR$_",qw{modules lib ../modules ..lib};
16 my %OPTS;
17 my @OPTIONS = qw/help|h|? version|ver edit-me manual|man/;
19 if(@ARGV)
21 require Getopt::Long;
22 require MyPlace::Usage;
23 Getopt::Long::GetOptions(\%OPTS,@OPTIONS);
24 MyPlace::Usage::Process(\%OPTS,$VERSION);
26 else
28 require MyPlace::Usage;
29 MyPlace::Usage::PrintHelp();
33 __END__
35 =pod
37 =head1 NAME
39 ___NAME___ - PERL script
41 =head1 SYNOPSIS
43 ___NAME___ [options] ...
45 =head1 OPTIONS
47 =over 12
49 =item B<--version>
51 Print version infomation.
53 =item B<-h>,B<--help>
55 Print a brief help message and exits.
57 =item B<--manual>,B<--man>
59 View application manual
61 =item B<--edit-me>
63 Invoke 'editor' against the source
65 =back
67 =head1 DESCRIPTION
69 ___DESC___
71 =head1 CHANGELOG
73 2010-10-18 22:51:50 xiaoranzzz <___EMAIL___>
75 * file created.
77 =head1 AUTHOR
79 xiaoranzzz <___EMAIL___>
81 =cut
83 # vim:filetype=perl