From a03a0dddd7d92e610802abfaeb056ccc94656e26 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 3 Mar 2024 10:54:33 +0100 Subject: makefile: include status.txt file --- makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/makefile b/makefile index 9de00e4..bf37f4b 100644 --- a/makefile +++ b/makefile @@ -5,10 +5,14 @@ TMPDIR!=mktemp -d OPENBSD_VERSION!=uname -r | sed 's/\.//' TLBINPATH!=which latex | sed 's/\/latex//' TMPSOURCE?="" +UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//' .MAIN: update fetch: +.if "${UPDATING}" == "yes" + @echo "The binaries are being updated. Please re-run this command later." +.else curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ @@ -22,8 +26,12 @@ fetch: @echo "Now do this to install TeX Live with custom binaries:" @echo " cd /path/to/install-tl" @echo " ./install-tl --custom-bin=${TMPDIR}/bin" +.endif update: +.if "${UPDATING}" == "yes" + @echo "The binaries are being updated. Please re-run this command later." +.else curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ @@ -42,6 +50,7 @@ update: @echo "To complete the update, you must replace by hand your binaries" @echo "with those in ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz" .endif +.endif install: unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz -- cgit v1.2.3