-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
141 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/python | ||
|
||
import sys | ||
import urllib.request | ||
import re | ||
import os | ||
|
||
TL_MIRROR = 'https://www.texlive.info/tlnet-archive/{}/{}/{}/tlnet/' | ||
|
||
|
||
def github_output(variable, value): | ||
line = f'{variable}={value}' | ||
print(line) | ||
if 'GITHUB_OUTPUT' in os.environ: | ||
with open(os.environ['GITHUB_OUTPUT'], 'a') as f: | ||
f.write(line + '\n') | ||
|
||
|
||
def get_tl_year(mirror): | ||
listing = urllib.request.urlopen(mirror).read().decode('utf-8') | ||
matches = re.findall('>TEXLIVE_([\\d]+)<', listing) | ||
return int(matches[0]) | ||
|
||
|
||
def main(): | ||
date = sys.argv[1] | ||
|
||
year = date[0:4] | ||
month = date[4:6] | ||
day = date[6:8] | ||
|
||
mirror = TL_MIRROR.format(year, month, day) | ||
|
||
tl_year = get_tl_year(mirror) | ||
|
||
versions = [f'{tl_year}-latest', f'{tl_year}-{date}'] | ||
versions = ' '.join(versions) | ||
|
||
github_output('MIRROR', mirror) | ||
github_output('VERSIONS', versions) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file contains mirrors for the final TL versions. | ||
# Using these mirrors instead of the main TeX Live mirror ensures that: | ||
# 1. tlmgr may still be used even if a version is historic, and | ||
# 2. historic versions may still be built. | ||
|
||
# Note: There are alternative historic mirrors outside of US, | ||
# but US mirrors are used here as GH runners are US-based. | ||
# See https://tug.org/historic/ for details. | ||
|
||
# Final historic releases | ||
TL_MIRROR_2008=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2008/tlnet/ | ||
TL_MIRROR_2009=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2009/tlnet/ | ||
TL_MIRROR_2010=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2010/tlnet/ | ||
TL_MIRROR_2011=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2011/tlnet-final/ | ||
TL_MIRROR_2012=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2012/tlnet-final/ | ||
TL_MIRROR_2013=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2013/tlnet-final/ | ||
TL_MIRROR_2014=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2014/tlnet-final/ | ||
TL_MIRROR_2015=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2015/tlnet-final/ | ||
TL_MIRROR_2016=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2016/tlnet-final/ | ||
TL_MIRROR_2017=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2017/tlnet-final/ | ||
TL_MIRROR_2018=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2018/tlnet-final/ | ||
TL_MIRROR_2019=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2019/tlnet-final/ | ||
TL_MIRROR_2020=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2020/tlnet-final/ | ||
TL_MIRROR_2021=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/tlnet-final/ | ||
TL_MIRROR_2022=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2022/tlnet-final/ | ||
TL_MIRROR_2023=https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2023/tlnet-final/ | ||
|
||
# Current release in progress | ||
TL_MIRROR_2024=https://texlive.info/tlnet-archive/2024/08/23/tlnet/ |