Changeset 0739fa7
- Timestamp:
- 04/14/2021 06:35:19 PM (2 years ago)
- Branches:
- 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, 12.0, 12.0-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/parallelism, xry111/pip3, xry111/rust-wip-20221008
- Children:
- 24c34df, c74edb3
- Parents:
- 05cfebad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest-git.php
r05cfebad r0739fa7 81 81 else 82 82 { 83 exec( "l inks-dump $url 2>/dev/null", $lines );83 exec( "lynx -dump $url 2>/dev/null", $lines ); 84 84 return $lines; 85 85 } … … 107 107 global $regex; 108 108 109 //if ( $package != "psmisc" ) return 0; // Debug109 //if ( $package != "psmisc" ) return 0; // debug 110 110 111 111 if ( $package == "bc" ) $dirpath = "https://github.com/gavinhoward/bc/releases"; 112 112 if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases"; 113 if ( $package == "e2fsprogs" ) $dirpath = "http ://sourceforge.net/projects/e2fsprogs/files/e2fsprogs";113 if ( $package == "e2fsprogs" ) $dirpath = "https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/"; 114 114 if ( $package == "expat" ) $dirpath = "http://sourceforge.net/projects/expat/files"; 115 115 if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; … … 184 184 ftp_close( $conn ); 185 185 } 186 else // http 186 else // http(s) 187 187 { 188 188 // Customize http directories as needed … … 197 197 } 198 198 199 //if ( $package == "bzip2" )200 //{201 // // Remove one directory202 // $dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash203 // $position = strrpos( $dirpath, "/" );204 // $dirpath = substr ( $dirpath, 0, $position );205 //}206 207 199 $lines = http_get_file( $dirpath ); 208 200 if ( ! is_array( $lines ) ) return -6; 209 201 } // End fetch 210 //print_r($lines); 202 211 203 if ( isset( $regex[ $package ] ) ) 212 204 { … … 318 310 #exec ( "svn --quiet export $lfssvn LFS" ); 319 311 exec ( "git clone $lfsgit LFS" ); 312 313 # Make version.ent 314 chdir( "$tmpdir/LFS" ); 315 exec ( "./git-version.sh" ); 316 320 317 chdir( $cdir ); 321 318 … … 384 381 global $dirs; 385 382 386 //$to = "bruce.dubbs@gmail.com"; 387 //$to = "lfs-book@lists.linuxfromscratch.org"; 388 $to = "bdubbs"; // Just local for now 389 $from = "bdubbs@linuxfromscratch.org"; 383 $to = "lfs-book@lists4.linuxfromscratch.org"; 384 $from = "bdubbs@rivendell.linuxfromscratch.org"; 390 385 $subject = "LFS Package Currency Check - $date GMT"; 391 386 $headers = "From: bdubbs@rivendell.linuxfromscratch.org"; … … 479 474 } 480 475 476 function write_to_stdout() 477 { 478 479 global $date; 480 global $vers; 481 global $dirs; 482 483 echo " 484 LFS Package Currency Check 485 As of $date GMT 486 487 LFS Package LFS Version Latest Flag\n"; 488 489 // Get the latest version of each package 490 foreach ( $dirs as $pkg => $dir ) 491 { 492 $p_name = sprintf( "%-15s", $pkg ); // package name formatted 493 494 $b_version = $vers[ $pkg ]; // book version 495 $b_string = sprintf( "%-11s", $b_version ); // book version formatted 496 497 $latest = get_packages( $pkg, $dir ); // latest version 498 $l_string = sprintf( "%-6s", $latest ); // latest version formatted 499 500 $flag = ( $b_version != $latest ) ? "*" : ""; 501 echo "$p_name $b_string $l_string $flag\n"; 502 } 503 } 504 481 505 get_current(); // Get what is in the book 482 506 mail_to_lfs(); 483 507 //html(); // Write html output 508 //write_to_stdout(); // For debugging 484 509 ?>
Note:
See TracChangeset
for help on using the changeset viewer.