From 888230fbdfc29c241ab50f6ee721a07abd56dc13 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 15 Mar 2024 11:03:17 +0100 Subject: make: abort updating if latex is not found --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index dbda1b2..c2513ec 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,7 @@ PREFIX?=/usr/local/texlive/${TL_YEAR}/bin/custom BINREPO=https://www.ekdosis.org/texlive TMPDIR!=mktemp -d OPENBSD_VERSION!=uname -r | sed 's/\.//' -TLBINPATH!!=which latex | sed 's/\/latex//' +TLBINPATH!!=which latex 2>/dev/null | sed 's/\/latex//' TMPSOURCE?="" UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//' @@ -32,6 +32,10 @@ fetch: .endif update: +.if "${TLBINPATH}" == "" + @echo "There is nothing to update. Aborting." + exit 1 +.endif .if "${UPDATING}" == "yes" @echo "The binaries are being updated. Please re-run this command later." .else -- cgit v1.2.3