Add test to prove insert statements with quoted semi-colons can still be skipped
[dbsrgits/SQL-Translator.git] / Build.PL
index 619891b..f35c6db 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -1,9 +1,10 @@
-# $Id: Build.PL,v 1.5 2005-05-18 16:17:41 grommit Exp $
+# $Id: Build.PL,v 1.11 2006-03-06 13:08:42 grommit Exp $
 
 use strict;
+use lib './lib';
 use Module::Build;
 
-my $builder           =  Module::Build->new(
+my $builder = Module::Build->new(
     create_readme     => 0,
     dist_abstract     => 'SQL DDL transformations and more',
     dist_author       => 'Ken Y. Clark <kclark@cpan.org>',
@@ -21,6 +22,7 @@ my $builder           =  Module::Build->new(
     requires          => {
         'Class::Base'              => 0,
         'Class::Data::Inheritable' => 0.02,
+        'Class::MakeMethods'       => 0,
         'IO::Dir'                  => 0,
         'Log::Log4perl'            => 0,
         'Template'                 => 2.10,
@@ -37,7 +39,6 @@ my $builder           =  Module::Build->new(
         'Text::RecordParser'      => 0.02,
         'XML::Writer'             => 0.500,
         'XML::XPath'              => 1.13,
-        'YAML'                    => 0.39,
     },
     build_requires    => {
         'File::Basename'          => 0,
@@ -45,7 +46,17 @@ my $builder           =  Module::Build->new(
         'Test::More'              => 0.6,
         'Test::Exception'         => 0,
         'Test::Differences'       => 0,
-    }
+        'YAML'                    => 0.39,
+    },
+    get_options => {
+        # Where to store additional files such as templates.
+        # TODO: Should be OS dependant. See Module::Build::os_type()
+        install_dir => { type=>'=s', default=>'/usr/local/share/sqlfairy' },
+    },
 );
+
+# Copy .tt2 files in lib into blib/lib
+$builder->add_build_element('tt2');
+
 $builder->create_build_script;
 print "Now run './Build', './Build test', and './Build install'\n";