aboutsummaryrefslogtreecommitdiff
path: root/tlobsd
diff options
context:
space:
mode:
Diffstat (limited to 'tlobsd')
-rw-r--r--tlobsd9
1 files changed, 4 insertions, 5 deletions
diff --git a/tlobsd b/tlobsd
index 5f226c5..14ebc6c 100644
--- a/tlobsd
+++ b/tlobsd
@@ -1,14 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $TeX Live for OpenBSD, 2024/04/26 $ 3# $TeX Live for OpenBSD, 2024/04/27 $
4 4
5cmd=$@ 5cmd=$@
6export tlobsd=1 6export tlobsd=1
7 7
8TL_RELEASE=$(tlmgr version | awk 'FNR == 3 { print $0 }')
9TLOBSD_DATE=$(stat -t '%F' $(which tlobsd) | awk '{ gsub("\"", "", $10) }; { print $10 }')
10OPENBSD_VERSION=$(sysctl -n kern.version | awk 'FNR == 1 { print $2 }')
11
12# no $cmd 8# no $cmd
13if [[ -z ${cmd} ]];then 9if [[ -z ${cmd} ]];then
14 echo "$(basename $0): unknown action" 10 echo "$(basename $0): unknown action"
@@ -22,6 +18,9 @@ elif [[ $1 == "mksymlinks" ]];then
22 tlobsd-mksymlinks $2 18 tlobsd-mksymlinks $2
23# version 19# version
24elif [[ $1 == "version" ]];then 20elif [[ $1 == "version" ]];then
21 TL_RELEASE=$(tlmgr version | awk 'FNR == 3 { print $0 }')
22 TLOBSD_DATE=$(stat -t '%F' $(which tlobsd) | awk '{ gsub("\"", "", $10) }; { print $10 }')
23 OPENBSD_VERSION=$(sysctl -n kern.version | awk 'FNR == 1 { print $2 }')
25 echo "${TL_RELEASE} for OpenBSD ${OPENBSD_VERSION} (Compiled ${TLOBSD_DATE})" 24 echo "${TL_RELEASE} for OpenBSD ${OPENBSD_VERSION} (Compiled ${TLOBSD_DATE})"
26# something that is unknown to tlobsd 25# something that is unknown to tlobsd
27else 26else