PatchBot/modules/GCC9.php
2021-03-05 10:13:58 +01:00

15 lines
380 B
PHP

<?php
class GCC9 extends PatchBase {
function __construct() {
parent::__construct('Free Software Foundation', 'GNU Compiler Collection', 'https://gcc.gnu.org/');
$this->patch->setBranch('9');
}
function check() : bool {
if ($this->fetch('https://gcc.gnu.org/'))
return $this->parse('/<span class="version"><a href="gcc-9\/">GCC ([\d\.]+)/');
return false;
}
}
?>