[Bps-public-commit] r13559 - in Shipwright/trunk: lib/Shipwright/Script

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jun 24 10:59:25 EDT 2008


Author: sunnavy
Date: Tue Jun 24 10:59:24 2008
New Revision: 13559

Modified:
   Shipwright/trunk/   (props changed)
   Shipwright/trunk/lib/Shipwright/Script/Import.pm

Log:
 r13764 at sunnavys-mb:  sunnavy | 2008-06-24 22:58:24 +0800
 configure is the last try


Modified: Shipwright/trunk/lib/Shipwright/Script/Import.pm
==============================================================================
--- Shipwright/trunk/lib/Shipwright/Script/Import.pm	(original)
+++ Shipwright/trunk/lib/Shipwright/Script/Import.pm	Tue Jun 24 10:59:24 2008
@@ -276,17 +276,7 @@
     chdir $source_dir;
 
     my @commands;
-    if ( -f 'configure' ) {
-        print
-          "detected autoconf build system; generating appropriate build script\n";
-        @commands = (
-            'configure: ./configure --prefix=%%INSTALL_BASE%%',
-            'make: make',
-            'install: make install',
-            'clean: make clean'
-        );
-    }
-    elsif ( -f 'Build.PL' ) {
+    if ( -f 'Build.PL' ) {
         print
 "detected Module::Build build system; generating appropriate build script\n";
         push @commands,
@@ -309,6 +299,16 @@
         push @commands, "install: make install";
         push @commands, "clean: make clean";
     }
+    elsif ( -f 'configure' ) {
+        print
+          "detected autoconf build system; generating appropriate build script\n";
+        @commands = (
+            'configure: ./configure --prefix=%%INSTALL_BASE%%',
+            'make: make',
+            'install: make install',
+            'clean: make clean'
+        );
+    }
     else {
         my ($name) = $source_dir =~ /([-\w.]+)$/;
         print "unknown build system for this dist; you MUST manually edit\n";



More information about the Bps-public-commit mailing list