Add FreeBSD Platform Tag -- supports x86_64-freebsd, arm*-freebsd, and i386-freebsd with optional extension for tagging specific release (e.g. freebsd11)

This commit is contained in:
Kyle Evans 2016-10-03 23:37:27 -05:00
parent 653a05273d
commit 481fd94ac6
1 changed files with 10 additions and 0 deletions

View File

@ -79,6 +79,16 @@ public abstract class HostDependentDownloadableContribution extends Downloadable
}
}
if (osName.contains("FreeBSD")) {
if (osArch.contains("amd64")) {
return host.matches("x86_64-freebsd[0-9]*");
} else if (osArch.contains("arm")) {
return host.matches("arm.*-freebsd[0-9]*");
} else {
return host.matches("i386-freebsd[0-9]*");
}
}
return false;
}
}