diff options
-rw-r--r-- | makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -5,10 +5,14 @@ TMPDIR!=mktemp -d | |||
5 | OPENBSD_VERSION!=uname -r | sed 's/\.//' | 5 | OPENBSD_VERSION!=uname -r | sed 's/\.//' |
6 | TLBINPATH!=which latex | sed 's/\/latex//' | 6 | TLBINPATH!=which latex | sed 's/\/latex//' |
7 | TMPSOURCE?="" | 7 | TMPSOURCE?="" |
8 | UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//' | ||
8 | 9 | ||
9 | .MAIN: update | 10 | .MAIN: update |
10 | 11 | ||
11 | fetch: | 12 | fetch: |
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 | ||
26 | update: | 31 | update: |
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 | ||
46 | install: | 55 | install: |
47 | unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz | 56 | unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz |