Author: bdubbs
Date: Wed Apr 12 13:14:20 2017
New Revision: 18589

Log:
Fix script for fuse-3 addition in the book

Modified:
   trunk/scripts/blfs-chapter05.php

Modified: trunk/scripts/blfs-chapter05.php
==============================================================================
--- trunk/scripts/blfs-chapter05.php    Wed Apr 12 12:10:17 2017        (r18588)
+++ trunk/scripts/blfs-chapter05.php    Wed Apr 12 13:14:20 2017        (r18589)
@@ -11,9 +11,11 @@
 $renames = array();
 $renames[ 'btrfs-progs-v' ] = 'btrfs-progs';
 $renames[ 'LVM2.'         ] = 'LVM2';
+$renames[ 'fuse'          ] = 'fuse3';
+$renames[ 'fuse1'         ] = 'fuse2';
 $ignores = array();
 
-//$current="sshfs";   // For debugging
+//$current="fuse1";   // For debugging
 
 $regex = array();
 $regex[ 'ntfs-3g_ntfsprogs' ] = "/^.*Stable Source Release ([\d\.]+).*$/";
@@ -26,6 +28,10 @@
         'match'   => '^.*$', 
         'replace' => "https://github.com/libfuse/libfuse/releases"; ),
 
+ array( 'pkg'     => 'fuse1',
+        'match'   => '^.*$', 
+        'replace' => "https://github.com/libfuse/libfuse/releases"; ),
+
  array( 'pkg'     => 'jfsutils',
         'match'   => '^.*$', 
         'replace' => "http://jfs.sourceforge.net/jfs_lr.html"; ),
@@ -120,7 +126,6 @@
 
   if ( $book_index == "jfsutils" )
   {
-//print_r($lines);
     $max = find_max( $lines, '/release/', '/^.*release ([\d\.]+).*$/' );
     return $max;
   }
@@ -131,6 +136,18 @@
     return $max;
   }
 
+  if ( $book_index == "fuse1" )
+  {
+    $max = find_max( $lines, '/fuse-2/', '/^.*fuse-(2[\d\.]*)\.tar.*$/' );
+    return $max;
+  }
+
+  if ( $book_index == "fuse" )
+  {
+    $max = find_max( $lines, '/fuse-3/', '/^.*fuse-(3[\d\.]*)\.tar.*$/' );
+    return $max;
+  }
+
   // Most packages are in the form $package-n.n.n
   // Occasionally there are dashes (e.g. 201-1)
   $max = find_max( $lines, "/$package/", "/^.*$package-([\d\.]*\d)\.tar.*$/" );
-- 
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