[Bps-public-commit] Shipwright branch, master, updated. df5e707cd4d646730773459ff2d41742e1062c75

? sunnavy sunnavy at bestpractical.com
Wed Nov 10 06:44:09 EST 2010


The branch, master has been updated
       via  df5e707cd4d646730773459ff2d41742e1062c75 (commit)
      from  13c5798853a4a8fb33725b3399db2c0c384d9f53 (commit)

Summary of changes:
 lib/Shipwright/Script/Import.pm |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit df5e707cd4d646730773459ff2d41742e1062c75
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Nov 10 19:40:31 2010 +0800

    build_script can be either build or build.pl

diff --git a/lib/Shipwright/Script/Import.pm b/lib/Shipwright/Script/Import.pm
index cf1003f..ffc8a3a 100644
--- a/lib/Shipwright/Script/Import.pm
+++ b/lib/Shipwright/Script/Import.pm
@@ -178,8 +178,14 @@ sub run {
                 );
 
                 if ( my $script = $self->build_script ) {
-                    copy( $self->build_script,
-                        catfile( $script_dir, 'build' ) );
+                    if ( $script =~ /\.pl/ ) {
+                        copy( $self->build_script,
+                            catfile( $script_dir, 'build.pl' ) );
+                    }
+                    else {
+                        copy( $self->build_script,
+                            catfile( $script_dir, 'build' ) );
+                    }
                 }
                 else {
                     $self->_generate_build( $source, $script_dir, $shipwright );

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list