diff options
author | Robert Alessi <alessi@robertalessi.net> | 2024-04-26 11:35:40 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2024-04-26 11:35:40 +0200 |
commit | b8f1d3f936f369a2f8d8a4b40c765791e40251c9 (patch) | |
tree | d17f0f597c41962e6895d96ee204980a925477bb | |
parent | c213ab680477c4c4860656ab1bbbf35f476b8f46 (diff) | |
download | texlive-openbsd-b8f1d3f936f369a2f8d8a4b40c765791e40251c9.tar.gz |
makefile: use awk only once to get OPENBSD_VERSION
-rw-r--r-- | makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ TL_YEAR?=2024 | |||
2 | PREFIX?=/usr/local/texlive/${TL_YEAR}/bin/custom | 2 | PREFIX?=/usr/local/texlive/${TL_YEAR}/bin/custom |
3 | BINREPO=https://www.ekdosis.org/texlive | 3 | BINREPO=https://www.ekdosis.org/texlive |
4 | TMPDIR!=mktemp -d | 4 | TMPDIR!=mktemp -d |
5 | OPENBSD_VERSION!=sysctl -n kern.version | awk '{ print $$2 }' | sed 's/\.//' | awk NF | 5 | OPENBSD_VERSION!=sysctl -n kern.version | awk 'FNR == 1 { print $$2 }' | sed 's/\.//' |
6 | TLBINPATH!!=which latex 2>/dev/null | sed 's/\/latex$$//' | 6 | TLBINPATH!!=which latex 2>/dev/null | sed 's/\/latex$$//' |
7 | TMPSOURCE?="" | 7 | TMPSOURCE?="" |
8 | UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//' | 8 | UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//' |