From 50a36a45c05fc35a7116d7d3feb3a642940b6d14 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 5 Sep 2024 13:43:00 +0200 Subject: [PATCH] Only keep list of assets for latest GAP release This allows us to simplify some code and drop the version-safe variable --- _data/{assets/4-13-1.json => assets.json} | 0 _data/assets/4-11-0.json | 44 ---------------- _data/assets/4-11-1.json | 56 -------------------- _data/assets/4-12-0.json | 62 ----------------------- _data/assets/4-12-1.json | 62 ----------------------- _data/assets/4-12-2.json | 56 -------------------- _data/assets/4-13-0.json | 56 -------------------- _data/release.json | 1 - install/linux.md | 4 +- install/mac.md | 4 +- install/windows.md | 4 +- 11 files changed, 3 insertions(+), 346 deletions(-) rename _data/{assets/4-13-1.json => assets.json} (100%) delete mode 100644 _data/assets/4-11-0.json delete mode 100644 _data/assets/4-11-1.json delete mode 100644 _data/assets/4-12-0.json delete mode 100644 _data/assets/4-12-1.json delete mode 100644 _data/assets/4-12-2.json delete mode 100644 _data/assets/4-13-0.json diff --git a/_data/assets/4-13-1.json b/_data/assets.json similarity index 100% rename from _data/assets/4-13-1.json rename to _data/assets.json diff --git a/_data/assets/4-11-0.json b/_data/assets/4-11-0.json deleted file mode 100644 index ad4e415d..00000000 --- a/_data/assets/4-11-0.json +++ /dev/null @@ -1,44 +0,0 @@ -[ - { - "bytes": 13467788, - "name": "gap-4.11.0-core.tar.bz2", - "sha256": "6637f66409bc91af21eaa38368153270b71b13b55b75cc1550ed867c629901d1", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.0/gap-4.11.0-core.tar.bz2" - }, - { - "bytes": 18695893, - "name": "gap-4.11.0-core.zip", - "sha256": "d04d16f0a220009c638ade27d7abf806c35ee891fbca4c281bd98ba2578c2f81", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.0/gap-4.11.0-core.zip" - }, - { - "bytes": 648658950, - "name": "gap-4.11.0.exe", - "sha256": "fa9e2147ae00a5e55e8b75a2798e051fb0e628881170031447748b206196a684", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.0/gap-4.11.0.exe" - }, - { - "bytes": 405499637, - "name": "gap-4.11.0.tar.bz2", - "sha256": "bf070a10dc2ac60593fe65df0f873d72d4d67501e86eb262a6f6bd48fc868602", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.0/gap-4.11.0.tar.bz2" - }, - { - "bytes": 446821687, - "name": "gap-4.11.0.tar.gz", - "sha256": "6fda7af23394708aeb3b4bca8885f5fdcb7c3ae4419639dfb2d9f67d3f590abb", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.0/gap-4.11.0.tar.gz" - }, - { - "bytes": 479390747, - "name": "gap-4.11.0.zip", - "sha256": "6f8e3fb16ae1d8e91fe6c850c3d82f6fe7950213a9aae99bd927d1ea0dd8ad07", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.0/gap-4.11.0.zip" - }, - { - "bytes": 53096715, - "name": "packages-required-v4.11.0.tar.gz", - "sha256": "29ab6e2752f39d22e3f0a19e5bcbfec1710993b4cfd52337a0ca10fda6a76537", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.0/packages-required-v4.11.0.tar.gz" - } -] \ No newline at end of file diff --git a/_data/assets/4-11-1.json b/_data/assets/4-11-1.json deleted file mode 100644 index 7febd38c..00000000 --- a/_data/assets/4-11-1.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "bytes": 30215656, - "name": "gap-4.11.1-core.tar.gz", - "sha256": "2b6e2ed90fcae4deb347284136427105361123ac96d30d699db7e97d094685ce", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/gap-4.11.1-core.tar.gz" - }, - { - "bytes": 33306749, - "name": "gap-4.11.1-core.zip", - "sha256": "4f396322aff1784725b9a113ed6d741f915bd6eb87423441d1e14370192a132b", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/gap-4.11.1-core.zip" - }, - { - "bytes": 668492067, - "name": "gap-4.11.1.exe", - "sha256": "cf5df64588514426dd0c9a46c058b9e4f7bf7c9be7f6ccd566a3029a7e4c2b03", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/gap-4.11.1.exe" - }, - { - "bytes": 511599444, - "name": "gap-4.11.1.tar.gz", - "sha256": "6635c5da7d82755f8339486b9cac33766f58712f297e8234fba40818902ea304", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/gap-4.11.1.tar.gz" - }, - { - "bytes": 548543686, - "name": "gap-4.11.1.zip", - "sha256": "310c3bf9c33c751ad8766e331662282ea580fa7c6f628fd549b5b3e3a72c8331", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/gap-4.11.1.zip" - }, - { - "bytes": 93826220, - "name": "packages-required-v4.11.1.tar.gz", - "sha256": "5f66ac4053db34e4c0ebca25dd7666b891c812c084082db6cc28c551c57a3792", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/packages-required-v4.11.1.tar.gz" - }, - { - "bytes": 98145535, - "name": "packages-required-v4.11.1.zip", - "sha256": "05f4c01fa2045d09558667620aed73663fdfa1ba665b9ca29884e656f7161ae4", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/packages-required-v4.11.1.zip" - }, - { - "bytes": 481308268, - "name": "packages-v4.11.1.tar.gz", - "sha256": "5454018d649fc622ce7a9acf2bab7f02b1af6ed2cbed4627a7501feaafd1f445", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/packages-v4.11.1.tar.gz" - }, - { - "bytes": 514248895, - "name": "packages-v4.11.1.zip", - "sha256": "5f5baba1911c21e48093526d36dd557a4c504476f80548b14c85e6d223fc3f71", - "url": "https://github.com/gap-system/gap/releases/download/v4.11.1/packages-v4.11.1.zip" - } -] \ No newline at end of file diff --git a/_data/assets/4-12-0.json b/_data/assets/4-12-0.json deleted file mode 100644 index 3fa982f6..00000000 --- a/_data/assets/4-12-0.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "bytes": 37612283, - "name": "gap-4.12.0-core.tar.gz", - "sha256": "529b47e95724cfe57728acc982053cc911eb2217b42df716516e45a119520806", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/gap-4.12.0-core.tar.gz" - }, - { - "bytes": 41104468, - "name": "gap-4.12.0-core.zip", - "sha256": "05643fedb188a0bb5a6ad04edc42040870277f2003bfcb0160a2c9fcc793efff", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/gap-4.12.0-core.zip" - }, - { - "bytes": 592746301, - "name": "gap-4.12.0-x86.exe", - "sha256": "2d6fb4d31490a2b4983abb854bf23320d7a9722021e1077ce58173513b656bbf", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/gap-4.12.0-x86.exe" - }, - { - "bytes": 583310483, - "name": "gap-4.12.0-x86_64.exe", - "sha256": "0d6cf3c91c0bb4371604783b17bdc531be8c9a28b1d2067e71958d638519dcfb", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/gap-4.12.0-x86_64.exe" - }, - { - "bytes": 505913244, - "name": "gap-4.12.0.tar.gz", - "sha256": "6005d0c0316fe8803d84681f30be64eace83a9542f975f5cb3dedfadd4391849", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/gap-4.12.0.tar.gz" - }, - { - "bytes": 527383400, - "name": "gap-4.12.0.zip", - "sha256": "42ade38c8d4e99f98feca7f52b3627dd0385c19723d2a6ac582db79bd20644af", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/gap-4.12.0.zip" - }, - { - "bytes": 96602099, - "name": "packages-required-v4.12.0.tar.gz", - "sha256": "2f2b19406d5926ccdd0957da52ca36824fcd8252193a5a5d2677463516ec8cf1", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/packages-required-v4.12.0.tar.gz" - }, - { - "bytes": 97903237, - "name": "packages-required-v4.12.0.zip", - "sha256": "53c9e0a67666c17954a17f28f4ca5256b151c454b8713fbeec0209ad19e7104b", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/packages-required-v4.12.0.zip" - }, - { - "bytes": 473784000, - "name": "packages-v4.12.0.tar.gz", - "sha256": "7a4de7ff08d9921b6d8ad7889c3bf3b54a57a17ecc231254f7eb717f1111bd12", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/packages-v4.12.0.tar.gz" - }, - { - "bytes": 485448476, - "name": "packages-v4.12.0.zip", - "sha256": "6c985765b84b5f8b7303ea6453cb7cc36dc65ba53e320263b1a2090da56031d6", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.0/packages-v4.12.0.zip" - } -] \ No newline at end of file diff --git a/_data/assets/4-12-1.json b/_data/assets/4-12-1.json deleted file mode 100644 index 2adc4209..00000000 --- a/_data/assets/4-12-1.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "bytes": 37601922, - "name": "gap-4.12.1-core.tar.gz", - "sha256": "1e8e823578e8f1018af592b39bd6f3be1402b482d98f1efb3e24fe6e2f55c926", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/gap-4.12.1-core.tar.gz" - }, - { - "bytes": 41111958, - "name": "gap-4.12.1-core.zip", - "sha256": "526278989085fe4b9baba8bdf8a2102d0455623e053addeaa72133ab980437b3", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/gap-4.12.1-core.zip" - }, - { - "bytes": 592988826, - "name": "gap-4.12.1-x86.exe", - "sha256": "4ca39575c44289abd30589be82012c65ce14b68f095b6af7cfc1379cb1ecfaf6", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/gap-4.12.1-x86.exe" - }, - { - "bytes": 582383075, - "name": "gap-4.12.1-x86_64.exe", - "sha256": "e2400dfc551e6559fbf63e2ba63aac82861e4cb65503f97101e5bda0926d2e7a", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/gap-4.12.1-x86_64.exe" - }, - { - "bytes": 504040985, - "name": "gap-4.12.1.tar.gz", - "sha256": "f9ebef11ee31b210ce36e3c70960742b4e253282bbd5270adc9324273c92b016", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/gap-4.12.1.tar.gz" - }, - { - "bytes": 527835190, - "name": "gap-4.12.1.zip", - "sha256": "01c6d6f676e618158f32b12a5e3db5e06fa5a47f65fbcd0a711a56aab45d0a3f", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/gap-4.12.1.zip" - }, - { - "bytes": 96605177, - "name": "packages-required-v4.12.1.tar.gz", - "sha256": "86d24a1a2208d57822b9aed159b2d5c1306e1a800c6440c6a0d4566e65829c57", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/packages-required-v4.12.1.tar.gz" - }, - { - "bytes": 97903237, - "name": "packages-required-v4.12.1.zip", - "sha256": "ae85fdc98afdb7a50334bddbdd8c5639424441d77a9d749a36d9bb8718923fef", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/packages-required-v4.12.1.zip" - }, - { - "bytes": 474287355, - "name": "packages-v4.12.1.tar.gz", - "sha256": "669d4a5bf852455fca86cfcccdf309a82e00601900b7028fa68df2b7acbc3207", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/packages-v4.12.1.tar.gz" - }, - { - "bytes": 485890752, - "name": "packages-v4.12.1.zip", - "sha256": "1020e1ebf7e834f5536c4b3405b1c5c8e61e8ddad6d27e269b62766c1e90db51", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.1/packages-v4.12.1.zip" - } -] \ No newline at end of file diff --git a/_data/assets/4-12-2.json b/_data/assets/4-12-2.json deleted file mode 100644 index 44afa9c8..00000000 --- a/_data/assets/4-12-2.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "bytes": 37671069, - "name": "gap-4.12.2-core.tar.gz", - "sha256": "5d73e77f0b2bbe8dd0233dfad48666aeb1fcbffd84c5dbb58c8ea2a8dd9687b5", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/gap-4.12.2-core.tar.gz" - }, - { - "bytes": 41173054, - "name": "gap-4.12.2-core.zip", - "sha256": "b7dcc4df3adc3de90c0c308187a7f78f3bfc28e5bf38abee195c74f1cc9d6fb4", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/gap-4.12.2-core.zip" - }, - { - "bytes": 606449063, - "name": "gap-4.12.2-x86_64.exe", - "sha256": "c086066e944237f46e8b562f57a5436f01aaa5ed56efe792124ee99c3cae093b", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/gap-4.12.2-x86_64.exe" - }, - { - "bytes": 508975703, - "name": "gap-4.12.2.tar.gz", - "sha256": "672308745eb78a222494ee8dd6786edd5bc331456fcc6456ac064bdb28d587a8", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/gap-4.12.2.tar.gz" - }, - { - "bytes": 529376844, - "name": "gap-4.12.2.zip", - "sha256": "d5285f1b125c56544925731345f635772f14dd8fe90248b8510840f0879ac6ca", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/gap-4.12.2.zip" - }, - { - "bytes": 97484962, - "name": "packages-required-v4.12.2.tar.gz", - "sha256": "1fa911d305c458470c1fb555c385402f09cccf1d2d372ab9c416ae7c4a8ebf6d", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/packages-required-v4.12.2.tar.gz" - }, - { - "bytes": 98013522, - "name": "packages-required-v4.12.2.zip", - "sha256": "161f2b1f7aceabeb13d416b28b88234d91fce7ee47fda0c063232d615012104a", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/packages-required-v4.12.2.zip" - }, - { - "bytes": 476842861, - "name": "packages-v4.12.2.tar.gz", - "sha256": "ae24a8811d05e7e0d5797a2d5cd52af839d5fbdf4428316b71714583549e77f5", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/packages-v4.12.2.tar.gz" - }, - { - "bytes": 487366932, - "name": "packages-v4.12.2.zip", - "sha256": "cb0b12a0b930490d3028bea8eeb3ca40278940cbdb44f6f2bab0e960246922e9", - "url": "https://github.com/gap-system/gap/releases/download/v4.12.2/packages-v4.12.2.zip" - } -] \ No newline at end of file diff --git a/_data/assets/4-13-0.json b/_data/assets/4-13-0.json deleted file mode 100644 index cb0bc065..00000000 --- a/_data/assets/4-13-0.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "bytes": 38666910, - "name": "gap-4.13.0-core.tar.gz", - "sha256": "6e6433b56c43ac4b2dab098bfb146dae1cb0dab62ae48a1a2144354af239c121", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/gap-4.13.0-core.tar.gz" - }, - { - "bytes": 42232788, - "name": "gap-4.13.0-core.zip", - "sha256": "f2a6d3ed27e498304ef05b924076e7491fbcc8529e07e6f79f82cabb1c034a95", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/gap-4.13.0-core.zip" - }, - { - "bytes": 677162187, - "name": "gap-4.13.0-x86_64.exe", - "sha256": "508f851e7e2e8cae040c07d795f5c49b246309ac9d527bcf10d08857fb1eb8f4", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/gap-4.13.0-x86_64.exe" - }, - { - "bytes": 540332525, - "name": "gap-4.13.0.tar.gz", - "sha256": "cc76ecbe33d6719450a593e613fb87e9e4247faa876f632dd0f97c398f92265d", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/gap-4.13.0.tar.gz" - }, - { - "bytes": 559158376, - "name": "gap-4.13.0.zip", - "sha256": "72dd4377b2969865c510d9d086aba4674f8685876c3d6f089ccd81eda00f7436", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/gap-4.13.0.zip" - }, - { - "bytes": 95573522, - "name": "packages-required-v4.13.0.tar.gz", - "sha256": "b0472bed62875bc80ca9c0ae661fac3183b0eed8bacea5dc462d15c43dc3abd4", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/packages-required-v4.13.0.tar.gz" - }, - { - "bytes": 96267019, - "name": "packages-required-v4.13.0.zip", - "sha256": "2f33cb02dbd877a2c9a2745355cbbe5aaa5267e2f7a34e014dc8306d124c6269", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/packages-required-v4.13.0.zip" - }, - { - "bytes": 505388927, - "name": "packages-v4.13.0.tar.gz", - "sha256": "43d75100eb75d3f1e7470d1a7b11164882dca66c70f7ad9d56915c9e4d90bc0f", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/packages-v4.13.0.tar.gz" - }, - { - "bytes": 516071636, - "name": "packages-v4.13.0.zip", - "sha256": "cab5ce969ea3615ace88c385ee997252d9a1ddbd43ce6d16e43c78bb0fad5e76", - "url": "https://github.com/gap-system/gap/releases/download/v4.13.0/packages-v4.13.0.zip" - } -] \ No newline at end of file diff --git a/_data/release.json b/_data/release.json index 0b72f32c..d9335018 100644 --- a/_data/release.json +++ b/_data/release.json @@ -1,5 +1,4 @@ { "version": "4.13.1", - "version-safe": "4-13-1", "date": "11 June 2024" } \ No newline at end of file diff --git a/install/linux.md b/install/linux.md index d4da7499..b4a940f2 100644 --- a/install/linux.md +++ b/install/linux.md @@ -6,14 +6,12 @@ nav_order: 2 permalink: /install/linux/ --- -{% assign version-safe = site.data.release.version | replace: ".", "-" %} - {% assign unix_assets = "" | split: ',' %} {% capture gap_prefix %}gap-{{ site.data.release.version }}{% endcapture %} {% assign len = gap_prefix | size %} -{% for asset in site.data.assets[version-safe] %} +{% for asset in site.data.assets %} {% assign asset_prefix = asset.name | slice: 0, len %} {% if asset_prefix == gap_prefix %}{% unless asset.name contains "-core" %} {% assign asset_suffix = asset.name | split: "" | reverse | join: "" | slice: 0, 4 %} diff --git a/install/mac.md b/install/mac.md index 9bb86f05..e8c39666 100644 --- a/install/mac.md +++ b/install/mac.md @@ -6,14 +6,12 @@ nav_order: 3 permalink: /install/mac/ --- -{% assign version-safe = site.data.release.version | replace: ".", "-" %} - {% assign unix_assets = "" | split: ',' %} {% capture gap_prefix %}gap-{{ site.data.release.version }}{% endcapture %} {% assign len = gap_prefix | size %} -{% for asset in site.data.assets[version-safe] %} +{% for asset in site.data.assets %} {% assign asset_prefix = asset.name | slice: 0, len %} {% if asset_prefix == gap_prefix %}{% unless asset.name contains "-core" %} {% assign asset_suffix = asset.name | split: "" | reverse | join: "" | slice: 0, 4 %} diff --git a/install/windows.md b/install/windows.md index f0d96cbb..671a83ec 100644 --- a/install/windows.md +++ b/install/windows.md @@ -6,14 +6,12 @@ nav_order: 4 permalink: /install/windows/ --- -{% assign version-safe = site.data.release.version | replace: ".", "-" %} - {% assign windows_assets = "" | split: ',' %} {% capture gap_prefix %}gap-{{ site.data.release.version }}{% endcapture %} {% assign len = gap_prefix | size %} -{% for asset in site.data.assets[version-safe] %} +{% for asset in site.data.assets %} {% assign asset_prefix = asset.name | slice: 0, len %} {% if asset_prefix == gap_prefix %}{% unless asset.name contains "-core" %} {% assign asset_suffix = asset.name | split: "" | reverse | join: "" | slice: 0, 4 %}