[Bps-public-commit] r10558 - bpsbuilder/Shipwright/lib/Shipwright/Script

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jan 29 15:12:47 EST 2008


Author: sunnavy
Date: Tue Jan 29 15:12:47 2008
New Revision: 10558

Modified:
   bpsbuilder/Shipwright/lib/Shipwright/Script/Import.pm

Log:
added "clean" type cmd to build

Modified: bpsbuilder/Shipwright/lib/Shipwright/Script/Import.pm
==============================================================================
--- bpsbuilder/Shipwright/lib/Shipwright/Script/Import.pm	(original)
+++ bpsbuilder/Shipwright/lib/Shipwright/Script/Import.pm	Tue Jan 29 15:12:47 2008
@@ -194,7 +194,7 @@
     if ( -f 'configure' ) {
         @commands = (
             'configure: ./configure --prefix=%%INSTALL_BASE%%',
-            'make: make', 'install: make install',
+            'make: make', 'install: make install', 'clean: make clean'
         );
     }
     elsif ( -f 'Build.PL' ) {
@@ -203,14 +203,15 @@
         push @commands, "make: ./Build";
         push @commands, "test: ./Build test";
         push @commands, "install: ./Build install";
+        push @commands, "clean ./Build realclean";
     }
     elsif ( -f 'Makefile.PL' ) {
         push @commands,
           'configure: %%PERL%% Makefile.PL INSTALL_BASE=%%INSTALL_BASE%%';
         push @commands, 'make: make';
         push @commands, 'test: make test';
-
         push @commands, "install: make install";
+        push @commands, "clean: make clean";
     }
     else {
         warn "I have no idea how to build this distribution";



More information about the Bps-public-commit mailing list