aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-03-03 10:54:33 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-03-03 10:54:33 +0100
commita03a0dddd7d92e610802abfaeb056ccc94656e26 (patch)
tree359a3d697441000e49e24fdea62e92b7bdd88ab8 /makefile
parentbfc47d6b4bb252a7a70446b08efc1c91c048e3d0 (diff)
downloadtexlive-openbsd-a03a0dddd7d92e610802abfaeb056ccc94656e26.tar.gz
makefile: include status.txt file
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/makefile b/makefile
index 9de00e4..bf37f4b 100644
--- a/makefile
+++ b/makefile
@@ -5,10 +5,14 @@ TMPDIR!=mktemp -d
5OPENBSD_VERSION!=uname -r | sed 's/\.//' 5OPENBSD_VERSION!=uname -r | sed 's/\.//'
6TLBINPATH!=which latex | sed 's/\/latex//' 6TLBINPATH!=which latex | sed 's/\/latex//'
7TMPSOURCE?="" 7TMPSOURCE?=""
8UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//'
8 9
9.MAIN: update 10.MAIN: update
10 11
11fetch: 12fetch:
13.if "${UPDATING}" == "yes"
14 @echo "The binaries are being updated. Please re-run this command later."
15.else
12 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ 16 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \
13 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz 17 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz
14 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ 18 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \
@@ -22,8 +26,12 @@ fetch:
22 @echo "Now do this to install TeX Live with custom binaries:" 26 @echo "Now do this to install TeX Live with custom binaries:"
23 @echo " cd /path/to/install-tl" 27 @echo " cd /path/to/install-tl"
24 @echo " ./install-tl --custom-bin=${TMPDIR}/bin" 28 @echo " ./install-tl --custom-bin=${TMPDIR}/bin"
29.endif
25 30
26update: 31update:
32.if "${UPDATING}" == "yes"
33 @echo "The binaries are being updated. Please re-run this command later."
34.else
27 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ 35 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \
28 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz 36 > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz
29 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ 37 curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \
@@ -42,6 +50,7 @@ update:
42 @echo "To complete the update, you must replace by hand your binaries" 50 @echo "To complete the update, you must replace by hand your binaries"
43 @echo "with those in ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz" 51 @echo "with those in ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz"
44.endif 52.endif
53.endif
45 54
46install: 55install:
47 unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz 56 unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz