Add GCC compilers
This commit is contained in:
parent
fd58dc3330
commit
e9cc73e674
3 changed files with 45 additions and 0 deletions
15
modules/GCC10.php
Normal file
15
modules/GCC10.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class GCC10 extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Free Software Foundation', 'GNU Compiler Collection', 'https://gcc.gnu.org/');
|
||||||
|
$this->patch->setBranch('10');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://gcc.gnu.org/'))
|
||||||
|
return $this->parse('/<span class="version"><a href="gcc-10\/">GCC ([\d\.]+)/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
15
modules/GCC8.php
Normal file
15
modules/GCC8.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class GCC8 extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Free Software Foundation', 'GNU Compiler Collection', 'https://gcc.gnu.org/');
|
||||||
|
$this->patch->setBranch('8');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://gcc.gnu.org/'))
|
||||||
|
return $this->parse('/<span class="version"><a href="gcc-8\/">GCC ([\d\.]+)/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
15
modules/GCC9.php
Normal file
15
modules/GCC9.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue