From d75daf741020ae43ef124a728ebcc1296944fb7d Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Wed, 28 Feb 2024 11:46:13 +0100 Subject: updated README. new rules for installing with --custom-bin --- makefile | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 28dce7f..e5ba378 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ OPENBSD_VERSION!=uname -r | sed 's/\.//' TLBINPATH!=which latex | sed 's/\/latex//' TMPSOURCE?="" -.MAIN: fetch +.MAIN: update fetch: curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ @@ -13,9 +13,24 @@ fetch: curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc gpg --verify ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc + unxz ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz + mkdir ${TMPDIR}/bin \ + && tar xf ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar \ + -C ${TMPDIR}/bin + @echo "Looks good." + @echo "Now do this to install TeX Live with custom binaries:" + @echo " cd /path/to/install-tl" + @echo " ./install-tl --custom-bin=${TMPDIR}/bin" + +update: + curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ + > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz + curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ + > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc + gpg --verify ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc .if "${PREFIX}" == ${TLBINPATH} @echo "Looks good." - @echo "Now do this to install or update the binaries:" + @echo "Now do this to update the binaries:" @echo "1. Remove the binaries that are currently installed:" @echo " doas rm ${PREFIX}/*" @echo "2. Run this command:" @@ -31,4 +46,4 @@ install: unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz doas tar xf ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar -C ${PREFIX}/ -.PHONY: fetch install +.PHONY: fetch update install -- cgit v1.2.3