From 7886729e9889558543cc96e54eecce1e45543194 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 24 Sep 2017 18:00:25 +0000 Subject: Update lfs currency scripts for new packages git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11307 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- lfs-latest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lfs-latest.php b/lfs-latest.php index e45186155..d9c8f91ae 100644 --- a/lfs-latest.php +++ b/lfs-latest.php @@ -118,8 +118,10 @@ if ( $package == "file" ) $dirpath = "https://github.com/file/file/release if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; if ( $package == "gcc" ) $dirpath = max_parent( $dirpath, "gcc-" ); if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk"; +if ( $package == "meson" ) $dirpath = "https://github.com/mesonbuild/meson/releases"; if ( $package == "mpc" ) $dirpath = "http://www.multiprecision.org/index.php?prog=mpc&page=download"; if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current"; +if ( $package == "ninja" ) $dirpath = "https://github.com/ninja-build/ninja/releases"; if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files"; if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files"; if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases"; @@ -250,6 +252,9 @@ if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix"; return $max; } + if ( $package == "ninja" ) + return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]*\d).*$/" ); + if ( $package == "gmp" ) return find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d[a-z]?).tar.*$/" ); @@ -319,10 +324,8 @@ function get_current() $pattern = "/\D*(\d.*[a-z]*)\.tar\D*/"; } - else if ( preg_match( "/eudev.*manpages/", $file ) ) - { - continue; - } + else if ( preg_match( "/eudev.*manpages/", $file ) ) continue; + else if ( preg_match( "/python/" , $file ) ) continue; $version = preg_replace( $pattern, "$1", $file ); // Isolate version $version = preg_replace( "/^\d-/", "", $version ); // Remove leading #- -- cgit v1.2.3-54-g00ecf