From f4be358c2b97736cda5a0d543fa3d34d3cde40bd Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 17 Jan 2012 18:49:15 +0100 Subject: getopt: new Autom4te::Getopt module * lib/Autom4te/General.pm (getopt): Move the guts of its implementation ... * lib/Autom4te/Getopt.pm (parse_options): .. into this function in the new Autom4te::Getopt module. This will make it simpler for the implementation to be shared with other projects (right now, Automake). * lib/Automake/Makefile.am (dist_perllib_DATA): Add the new module. --- lib/Autom4te/General.pm | 47 +++---------------- lib/Autom4te/Getopt.pm | 116 +++++++++++++++++++++++++++++++++++++++++++++++ lib/Autom4te/Makefile.am | 1 + 3 files changed, 123 insertions(+), 41 deletions(-) create mode 100644 lib/Autom4te/Getopt.pm (limited to 'lib') diff --git a/lib/Autom4te/General.pm b/lib/Autom4te/General.pm index f05042f6..0f93042d 100644 --- a/lib/Autom4te/General.pm +++ b/lib/Autom4te/General.pm @@ -36,6 +36,7 @@ use 5.006_002; use Exporter; use Autom4te::ChannelDefs; use Autom4te::Channels; +use Autom4te::Getopt (); use File::Basename; use File::Path (); use File::stat; @@ -232,12 +233,10 @@ sub debug (@) =item C -Wrapper around C. In addition to the user C