From b0c2f3df1eb678eef6e511af9109318408c42244 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sat, 27 Apr 2024 07:42:34 +0200 Subject: tlobsd: moved vars into 'version' action --- tlobsd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tlobsd') diff --git a/tlobsd b/tlobsd index 5f226c5..14ebc6c 100644 --- a/tlobsd +++ b/tlobsd @@ -1,14 +1,10 @@ #!/bin/sh # -# $TeX Live for OpenBSD, 2024/04/26 $ +# $TeX Live for OpenBSD, 2024/04/27 $ cmd=$@ export tlobsd=1 -TL_RELEASE=$(tlmgr version | awk 'FNR == 3 { print $0 }') -TLOBSD_DATE=$(stat -t '%F' $(which tlobsd) | awk '{ gsub("\"", "", $10) }; { print $10 }') -OPENBSD_VERSION=$(sysctl -n kern.version | awk 'FNR == 1 { print $2 }') - # no $cmd if [[ -z ${cmd} ]];then echo "$(basename $0): unknown action" @@ -22,6 +18,9 @@ elif [[ $1 == "mksymlinks" ]];then tlobsd-mksymlinks $2 # version elif [[ $1 == "version" ]];then + TL_RELEASE=$(tlmgr version | awk 'FNR == 3 { print $0 }') + TLOBSD_DATE=$(stat -t '%F' $(which tlobsd) | awk '{ gsub("\"", "", $10) }; { print $10 }') + OPENBSD_VERSION=$(sysctl -n kern.version | awk 'FNR == 1 { print $2 }') echo "${TL_RELEASE} for OpenBSD ${OPENBSD_VERSION} (Compiled ${TLOBSD_DATE})" # something that is unknown to tlobsd else -- cgit v1.2.3