aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/makefile b/makefile
index 28dce7f..e5ba378 100644
--- a/makefile
+++ b/makefile
@@ -5,7 +5,7 @@ OPENBSD_VERSION!=uname -r | sed 's/\.//'
5TLBINPATH!=which latex | sed 's/\/latex//' 5TLBINPATH!=which latex | sed 's/\/latex//'
6TMPSOURCE?="" 6TMPSOURCE?=""
7 7
8.MAIN: fetch 8.MAIN: update
9 9
10fetch: 10fetch:
11 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ 11 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \
@@ -13,9 +13,24 @@ fetch:
13 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ 13 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \
14 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc 14 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc
15 gpg --verify ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc 15 gpg --verify ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc
16 unxz ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz
17 mkdir ${TMPDIR}/bin \
18 && tar xf ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar \
19 -C ${TMPDIR}/bin
20 @echo "Looks good."
21 @echo "Now do this to install TeX Live with custom binaries:"
22 @echo " cd /path/to/install-tl"
23 @echo " ./install-tl --custom-bin=${TMPDIR}/bin"
24
25update:
26 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \
27 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz
28 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \
29 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc
30 gpg --verify ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc
16.if "${PREFIX}" == ${TLBINPATH} 31.if "${PREFIX}" == ${TLBINPATH}
17 @echo "Looks good." 32 @echo "Looks good."
18 @echo "Now do this to install or update the binaries:" 33 @echo "Now do this to update the binaries:"
19 @echo "1. Remove the binaries that are currently installed:" 34 @echo "1. Remove the binaries that are currently installed:"
20 @echo " doas rm ${PREFIX}/*" 35 @echo " doas rm ${PREFIX}/*"
21 @echo "2. Run this command:" 36 @echo "2. Run this command:"
@@ -31,4 +46,4 @@ install:
31 unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz 46 unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz
32 doas tar xf ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar -C ${PREFIX}/ 47 doas tar xf ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar -C ${PREFIX}/
33 48
34.PHONY: fetch install 49.PHONY: fetch update install