Changeset c0904fc
- Timestamp:
- 02/10/2018 10:12:31 PM (5 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 8.2, 8.2-rc1, 8.3, 8.3-rc1, 8.3-rc2, 8.4, 8.4-rc1, 9.0, 9.0-rc1, 9.1, 9.1-rc1, arm, cross-chap5, ml-11.0, multilib, old-trunk, s6-init, trunk, xry111/arm64, xry111/clfs-ng, xry111/git-transition, xry111/glibc-2.34, xry111/glibc-2.37, xry111/kcfg-revise, xry111/lfs-next, xry111/pip3, xry111/queue-11.3, xry111/rust-wip-20221008, xry111/tester-nohack, xry111/usr-move
- Children:
- 46f9e6c
- Parents:
- e5474751
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest.php
re5474751 rc0904fc 14 14 $regex[ 'bzip2' ] = "/^.*current version is ([\d\.]+).*$/"; 15 15 $regex[ 'check' ] = "/^.*Check (\d[\d\.]+\d).*$/"; 16 $regex[ 'expect' ] = "/^.*Download expect([\d\.]+)\.tar.*$/";17 $regex[ 'expat' ] = "/^.*Download expat-([\d\.]+)\.tar.*$/";18 16 $regex[ 'intltool' ] = "/^.*Latest version is (\d[\d\.]+\d).*$/"; 19 17 $regex[ 'less' ] = "/^.*current released version is less-(\d+).*$/"; 20 $regex[ 'mpc' ] = "/^(\d\.\d\.\d).*$/";21 18 $regex[ 'mpfr' ] = "/^mpfr-([\d\.]+)\.tar.*$/"; 22 19 $regex[ 'systemd' ] = "/^.*v([\d]+).*$/"; 23 20 $regex[ 'sysvinit' ] = "/^.*sysvinit-([\d\.]+)dsf\.tar.*$/"; 24 $regex[ 'tcl-core' ] = "/^.*Download tcl([\d\.]+)-src.*$/";25 21 $regex[ 'tzdata' ] = "/^.*tzdata([\d]+[a-z]).*$/"; 26 22 $regex[ 'xz' ] = "/^.*xz-([\d\.]*\d).*$/"; … … 109 105 global $regex; 110 106 111 //if ( $package != " check" ) return 0; // Debug107 //if ( $package != "expat" ) return 0; // Debug 112 108 113 109 if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases"; 114 110 if ( $package == "e2fsprogs" ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs"; 115 111 if ( $package == "expat" ) $dirpath = "http://sourceforge.net/projects/expat/files"; 116 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/ $package/files";112 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/expect/files"; 117 113 if ( $package == "file" ) $dirpath = "https://github.com/file/file/releases"; 118 114 if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; … … 120 116 if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk"; 121 117 if ( $package == "meson" ) $dirpath = "https://github.com/mesonbuild/meson/releases"; 122 if ( $package == "mpc" ) $dirpath = "http://www.multiprecision.org/ index.php?prog=mpc&page=download";118 if ( $package == "mpc" ) $dirpath = "http://www.multiprecision.org/mpc/download.html"; 123 119 if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current"; 124 120 if ( $package == "ninja" ) $dirpath = "https://github.com/ninja-build/ninja/releases"; … … 127 123 if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases"; 128 124 if ( $package == "systemd" ) $dirpath = "https://github.com/systemd/systemd/releases"; 129 if ( $package == "tcl -core") $dirpath = "http://sourceforge.net/projects/tcl/files";125 if ( $package == "tcl" ) $dirpath = "http://sourceforge.net/projects/tcl/files"; 130 126 if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." ); 131 127 if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix"; … … 199 195 $position = strrpos( $dirpath, "/" ); 200 196 $dirpath = substr ( $dirpath, 0, $position ); 201 //echo "$dirpath\n";202 197 } 203 198 … … 205 200 if ( ! is_array( $lines ) ) return -6; 206 201 } // End fetch 207 202 //print_r($lines); 208 203 if ( isset( $regex[ $package ] ) ) 209 204 { … … 245 240 return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]+\d).*$/" ); 246 241 242 if ( $package == "expect" ) 243 return find_max( $lines, "/expect/", "/^.*expect(\d[\d\.]+\d).tar.*$/" ); 244 245 if ( $package == "mpc" ) 246 return find_max( $lines, "/Version/", "/^.*Version (\d[\d\.]+\d)\\s*$/" ); 247 247 248 if ( $package == "XML-Parser" ) 248 249 { … … 253 254 } 254 255 256 if ( $package == "tcl" ) 257 return find_max( $lines, "/tcl/", "/^.*tcl(\d[\d\.]*\d)-src.*$/" ); 258 255 259 if ( $package == "ninja" ) 256 260 return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]*\d).*$/" ); … … 270 274 if ( $package == "grub" ) 271 275 return find_max( $lines, "/grub/", "/^.*grub-(\d\..*).tar.xz.*$/" ); 276 277 if ( $package == "openssl" ) 278 return find_max( $lines, "/openssl/", "/^.*openssl-([\d\.p]*\d.?).tar.*$/" ); 272 279 273 280 // Most packages are in the form $package-n.n.n … … 320 327 } 321 328 329 else if ( preg_match( "/openssl/", $file ) ) 330 { 331 $pattern = "/\D*(\d.*\d.*).tar.*$/"; 332 } 333 322 334 else if ( preg_match( "/gmp/", $file ) ) 323 335 { … … 325 337 } 326 338 327 else if ( preg_match( "/eudev.*manpages/", $file ) ) continue; 328 //else if ( preg_match( "/python/" , $file ) ) continue; 329 else if ( preg_match( "/systemd-man/" , $file ) ) continue; 339 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 340 else if ( preg_match( "/python/" , $file ) ) continue; 330 341 331 342 $version = preg_replace( $pattern, "$1", $file ); // Isolate version
Note:
See TracChangeset
for help on using the changeset viewer.