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

sunnavy at bestpractical.com sunnavy at bestpractical.com
Sun Sep 20 21:28:38 EDT 2009


The branch, master has been updated
       via  7cb9f81e8fe8666ba7ecd71ab3f8cbb7d3e1814e (commit)
      from  04ba2348f67378aadc99db668cf6925936c95067 (commit)

Summary of changes:
 share/bin/shipwright-builder |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 7cb9f81e8fe8666ba7ecd71ab3f8cbb7d3e1814e
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Sep 21 09:28:30 2009 +0800

    tweak copy to dists part in shipwright-builder

diff --git a/share/bin/shipwright-builder b/share/bin/shipwright-builder
index 53ab072..6151c39 100755
--- a/share/bin/shipwright-builder
+++ b/share/bin/shipwright-builder
@@ -470,8 +470,9 @@ sub _install {
             if ( !$branch && -d catdir( 'sources', $dir, 'vendor' ) ) {
                 $branch = 'vendor';
             }
-            rcopy( catdir( 'sources', $dir, split /\//, $branch ),
-                catdir( 'dists', $dir ) )
+            my $dist_dir = catdir( 'dists', $dir );
+            rmtree( $dist_dir ) if -e $dist_dir;
+            rcopy( catdir( 'sources', $dir, split /\//, $branch ), $dist_dir )
               or confess "copy sources/$dir/$branch to dists/$dir failed: $!";
         }
         chdir catdir( 'dists', $dir );

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



More information about the Bps-public-commit mailing list