mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-04 23:24:35 +00:00
Building using Github actions (#131)
Change Travis CICD to GitHub Actions
This commit is contained in:
34
cicd_scripts/check_issue_references.php
Normal file
34
cicd_scripts/check_issue_references.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
function print_usage()
|
||||
{
|
||||
fwrite(STDERR,
|
||||
"USAGE:\n"
|
||||
. " php check__issue_references.php mdfile\n"
|
||||
);
|
||||
}
|
||||
|
||||
if ($argc < 2) {
|
||||
fwrite(STDERR, "Invalid arguments:\n");
|
||||
print_usage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$mdfile = $argv[1];
|
||||
|
||||
$data = file_get_contents($mdfile);
|
||||
|
||||
if(preg_match_all('/\[([^\]]+)\][^(:]/', $data."\n",$m))
|
||||
{
|
||||
$references = $m[1];
|
||||
foreach($references as $r)
|
||||
{
|
||||
if(!preg_match("/\[".preg_quote($r,"/")."\]:(.*)/", $data,$m2)){
|
||||
if(preg_match('/^#[0-9]+$/', $r)){
|
||||
$issuenum = substr($r,1);
|
||||
echo "[$r]: https://www.free-decompiler.com/flash/issues/$issuenum\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user