Author: bdubbs
Date: Wed Sep 28 11:05:10 2016
New Revision: 17832

Log:
Update scripts for ninja

Modified:
   trunk/scripts/blfs-chapter13.php

Modified: trunk/scripts/blfs-chapter13.php
==============================================================================
--- trunk/scripts/blfs-chapter13.php    Tue Sep 27 19:35:09 2016        (r17831)
+++ trunk/scripts/blfs-chapter13.php    Wed Sep 28 11:05:10 2016        (r17832)
@@ -14,6 +14,7 @@
 $renames[ 'Python1'    ] = 'python3';
 $renames[ 'pygobject'  ] = 'pygobject2';
 $renames[ 'pygobject1' ] = 'pygobject3';
+$renames[ 'v'          ] = 'ninja';
 
 $ignores = array();
 $ignores[ 'cfe'          ] = '';
@@ -33,7 +34,7 @@
 $ignores[ 'python'       ] = '';
 $ignores[ 'python1'      ] = '';
 
-//$current="OpenJDK1";  // For debugging
+//$current="v";  // For debugging
 
 $regex = array();
 $regex[ 'check'   ] = "/^.*Download check-(\d[\d\.]+\d).tar.*$/";
@@ -107,6 +108,10 @@
           'match'   => '^.*$',
           'replace' => "https://github.com/junit-team/junit/wiki"; ),
 
+   array( 'pkg'     => 'v',
+          'match'   => '^.*$',
+          'replace' => "https://github.com/ninja-build/ninja/releases"; ),
+
    array( 'pkg'     => 'llvm',
           'match'   => '^.*$',
           'replace' => "http://llvm.org/releases/download.html"; ),
@@ -500,6 +505,12 @@
                               "/^\s*(\d[\d\.]+)\/.*$/" );
   }
 
+    if ( $package == "v" )  // ninja
+    {
+      $max = find_max( $lines, "/v/", "/^.*v(\d[\d\.]*\d).*$/" );
+      return $max;
+    }
+
   if ( $book_index == "swig" )
      return find_max( $lines, "/swig-/", "/.*swig-(\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