Add GCC 12

This commit is contained in:
Steffen Lange 2022-05-10 13:18:46 +02:00
parent 02c7fd9ecf
commit 6e09fdd2e9

15
modules/GCC12.php Normal file
View file

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