aboutsummaryrefslogtreecommitdiff
path: root/tlobsd
blob: 3e8d7ca44932502d21844b969ebdd948c2abc79d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# $TeX Live for OpenBSD, 2024/03/28 $

cmd=$@

# tlmgr
if [[ $1 == "tlmgr" ]];then
    $cmd
    [[ $? -eq 0 ]] && tlobsd-mksymlinks 1> /dev/null
# symlinks
elif [[ $1 == "mksymlinks" ]];then
    tlobsd-mksymlinks $2
# something that is unknown to tlobsd
else
    echo "$1 is not known to $(basename $0).  You should use:"
    echo "--> ${cmd}"
    echo "instead of:"
    echo "--> $(basename $0) ${cmd}"
fi