aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/make/high-level.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-06-10 16:27:52 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-06-10 16:32:36 +0100
commitb217136926af599219a410e426d8157101d8224a (patch)
treeb9fbc434749d4e51758eea66611e010a2cf75022 /reproduce/software/make/high-level.mk
parent397de4c918afa7eacc4c6a22b23f8c64b9478b3d (diff)
TeXlive: allows for updating itself and removes old version file
Until now, TeXlive would only attempt to download/update LaTeX packages, but after some time, it will be necessary for it to update itself. When this happens, it complains about running it with `update --self'. To fix this problem, before installing/updating the LaTeX packages, we will first update tlmgr in any case. Also, we weren't removing the TeXlive package version file before appending the values to it. So it was just repeating the packages every time it was updated. With this commit, it is being removed on every new build. Finally, the version of Git was updated to its most recent version.
Diffstat (limited to 'reproduce/software/make/high-level.mk')
-rw-r--r--reproduce/software/make/high-level.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/reproduce/software/make/high-level.mk b/reproduce/software/make/high-level.mk
index 0e7e72b..310b8e3 100644
--- a/reproduce/software/make/high-level.mk
+++ b/reproduce/software/make/high-level.mk
@@ -728,6 +728,14 @@ $(itidir)/texlive: reproduce/software/config/installation/texlive.mk \
if [ x"$$res" = x"NOT!" ]; then
echo "" > $@
else
+ # To update itself, tlmgr needs a backup directory.
+ backupdir=$(idir)/texlive/backups
+ mkdir -p $$backupdir
+
+ # Before checking LaTeX packages, update tlmgr itself.
+ tlmgr option backupdir $$backupdir
+ tlmgr update --self
+
# Install all the extra necessary packages. If LaTeX complains
# about not finding a command/file/what-ever/XXXXXX, simply run
# the following command to find which package its in, then add it
@@ -748,6 +756,7 @@ $(itidir)/texlive: reproduce/software/config/installation/texlive.mk \
| awk '{print $$NF}');
# Package names and versions.
+ rm -f $@
tlmgr info $(texlive-packages) --only-installed | awk \
'$$1=="package:" {version=0; \
if($$NF=="tex-gyre") name="texgyre"; \