Author: bdubbs
Date: Fri Jun  3 12:35:48 2016
New Revision: 17428

Log:
Fix swig current version identification

Modified:
   trunk/scripts/blfs-chapter13.php

Modified: trunk/scripts/blfs-chapter13.php
==============================================================================
--- trunk/scripts/blfs-chapter13.php    Thu Jun  2 13:29:29 2016        (r17427)
+++ trunk/scripts/blfs-chapter13.php    Fri Jun  3 12:35:48 2016        (r17428)
@@ -37,7 +37,7 @@
 $ignores[ 'python'       ] = '';
 $ignores[ 'python1'      ] = '';
 
-//$current="vala";  // For debugging
+//$current="swig";  // For debugging
 
 $regex = array();
 $regex[ 'check'   ] = "/^.*Download check-(\d[\d\.]+\d).tar.*$/";
@@ -46,7 +46,7 @@
 $regex[ 'llvm'    ] = "/^.*Download LLVM (\d[\d\.]+\d).*$/";
 $regex[ 'scons'   ] = "/^.*Download scons-(\d[\d\.]+\d).*$/";
 $regex[ 'tcl'     ] = "/^.*Download tcl(\d[\d\.]+\d).*$/";
-$regex[ 'swig'    ] = "/^.*Download swig-(\d[\d\.]+\d).*$/";
+//$regex[ 'swig'    ] = "/^.*Download swig-(\d[\d\.]+\d).*$/";
 $regex[ 'Python'  ] = "/^.*Latest Python 2.*Python (2[\d\.]+\d).*$/";
 $regex[ 'Python1' ] = "/^.*Latest Python 3.*Python (3[\d\.]+\d).*$/";
 $regex[ 'Mako'    ] = "/^.*version is (\d[\d\.]+\d).*$/";
@@ -508,6 +508,9 @@
                               "/^\s*(\d[\d\.]+)\/.*$/" );
   }
 
+  if ( $book_index == "swig" )
+     return find_max( $lines, "/swig-/", "/.*swig-(\d[\d\.]+).*/" );
+
   if ( $book_index == "nasm" )
     return find_max( $lines, '/^\d/', '/^(\d[\d\.]+\d)\/.*$/' );
 
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to