aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-04-26 11:35:40 +0200
committerRobert Alessi <alessi@robertalessi.net>2024-04-26 11:35:40 +0200
commitb8f1d3f936f369a2f8d8a4b40c765791e40251c9 (patch)
treed17f0f597c41962e6895d96ee204980a925477bb
parentc213ab680477c4c4860656ab1bbbf35f476b8f46 (diff)
downloadtexlive-openbsd-b8f1d3f936f369a2f8d8a4b40c765791e40251c9.tar.gz
makefile: use awk only once to get OPENBSD_VERSION
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index 4fc35e7..1cfe32e 100644
--- a/makefile
+++ b/makefile
@@ -2,7 +2,7 @@ TL_YEAR?=2024
2PREFIX?=/usr/local/texlive/${TL_YEAR}/bin/custom 2PREFIX?=/usr/local/texlive/${TL_YEAR}/bin/custom
3BINREPO=https://www.ekdosis.org/texlive 3BINREPO=https://www.ekdosis.org/texlive
4TMPDIR!=mktemp -d 4TMPDIR!=mktemp -d
5OPENBSD_VERSION!=sysctl -n kern.version | awk '{ print $$2 }' | sed 's/\.//' | awk NF 5OPENBSD_VERSION!=sysctl -n kern.version | awk 'FNR == 1 { print $$2 }' | sed 's/\.//'
6TLBINPATH!!=which latex 2>/dev/null | sed 's/\/latex$$//' 6TLBINPATH!!=which latex 2>/dev/null | sed 's/\/latex$$//'
7TMPSOURCE?="" 7TMPSOURCE?=""
8UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//' 8UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//'