diff options
-rw-r--r-- | tlobsd | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,10 +1,14 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | # $TeX Live for OpenBSD, 2024/03/28 $ | 3 | # $TeX Live for OpenBSD, 2024/04/26 $ |
4 | 4 | ||
5 | cmd=$@ | 5 | cmd=$@ |
6 | export tlobsd=1 | 6 | export tlobsd=1 |
7 | 7 | ||
8 | TL_RELEASE=$(tlmgr version | awk 'FNR == 3 { print $0 }') | ||
9 | TLOBSD_DATE=$(stat -t '%F' $(which tlobsd) | awk '{ gsub("\"", "", $10) }; { print $10 }') | ||
10 | OPENBSD_VERSION=$(sysctl -n kern.version | awk 'FNR == 1 { print $2 }') | ||
11 | |||
8 | # no $cmd | 12 | # no $cmd |
9 | if [[ -z ${cmd} ]];then | 13 | if [[ -z ${cmd} ]];then |
10 | echo "$(basename $0): unknown action" | 14 | echo "$(basename $0): unknown action" |
@@ -16,6 +20,9 @@ elif [[ $1 == "tlmgr" ]];then | |||
16 | # symlinks | 20 | # symlinks |
17 | elif [[ $1 == "mksymlinks" ]];then | 21 | elif [[ $1 == "mksymlinks" ]];then |
18 | tlobsd-mksymlinks $2 | 22 | tlobsd-mksymlinks $2 |
23 | # version | ||
24 | elif [[ $1 == "version" ]];then | ||
25 | echo "${TL_RELEASE} for OpenBSD ${OPENBSD_VERSION} (Compiled ${TLOBSD_DATE})" | ||
19 | # something that is unknown to tlobsd | 26 | # something that is unknown to tlobsd |
20 | else | 27 | else |
21 | echo "$1 is not known to $(basename $0). Try: ${cmd} --help if you need it." | 28 | echo "$1 is not known to $(basename $0). Try: ${cmd} --help if you need it." |