diff --git a/mksnapidx.awk b/mksnapidx.awk index e4b0e66..673508b 100644 --- a/mksnapidx.awk +++ b/mksnapidx.awk @@ -29,9 +29,11 @@ BEGIN { vmroot = "https://download.freebsd.org/ftp/snapshots/VM-IMAGES/" isoroot = "https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/" + bciroot = "https://download.freebsd.org/ftp/snapshots/CI-IMAGES/" relvmroot = "https://download.freebsd.org/ftp/releases/VM-IMAGES/" relisoroot = "https://download.freebsd.org/ftp/releases/ISO-IMAGES/" + relbciroot = "https://download.freebsd.org/ftp/releases/CI-IMAGES/" } tolower($1) == "message-id:" { @@ -86,6 +88,7 @@ function isrelease(relpart) { #FreeBSD-12.1-RC1-amd64-mini-memstick.img.xz #FreeBSD-12.1-RELEASE-arm64-aarch64.vmdk.xz #FreeBSD-13.1-RELEASE-riscv-riscv64.vmdk.xz +#FreeBSD-13.1-RELEASE-amd64-BASIC-CI.raw.xz $1 == "SHA512" { # Strip parens @@ -160,13 +163,19 @@ $1 == "SHA512" { } } if (isrelease(parts[3])) { - if (type == "vm") { + if (platform == "BASIC-CI") { + vers = dotparts[3] + url = relbciroot parts[2] "-" parts[3] "/" basearch "/Latest/" fname + } else if (type == "vm") { vers = dotparts[3] url = relvmroot parts[2] "-" parts[3] "/" basearch "/Latest/" fname } else url = relisoroot parts[2] "/" fname } else { - if (type == "vm") { + if (platform == "BASIC-CI") { + vers = dotparts[3] + url = cbiroot parts[2] "-" parts[3] "/" basearch "/" date "/" fname + } else if (type == "vm") { vers = dotparts[3] url = vmroot parts[2] "-" parts[3] "/" basearch "/" date "/" fname } else