diff options
author | Robert Alessi <alessi@robertalessi.net> | 2024-09-04 07:32:56 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2024-09-04 07:32:56 +0200 |
commit | 620f8f527093f786026c9d875b50630a30ecd3c6 (patch) | |
tree | 55cfbbd3cc50850546dfc7bc79034bca43f39352 | |
parent | 18bef47da28512048f090a78bd5ee7464d485489 (diff) | |
download | texlive-openbsd-620f8f527093f786026c9d875b50630a30ecd3c6.tar.gz |
tlobsd: do not run mksymlinks unless ls-R has been updated
-rw-r--r-- | tlobsd | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -27,8 +27,11 @@ elif [[ $1 == "help" ]];then | |||
27 | $cmd | 27 | $cmd |
28 | # tlmgr | 28 | # tlmgr |
29 | elif [[ $1 == "tlmgr" ]];then | 29 | elif [[ $1 == "tlmgr" ]];then |
30 | tempfile=`mktemp` | ||
30 | $cmd | 31 | $cmd |
31 | [[ $? -eq 0 ]] && tlobsd-mksymlinks 1> /dev/null | 32 | if [[ $? -eq 0 ]] && [[ ${tempfile} -ot $(kpsewhich ls-R) ]];then |
33 | tlobsd-mksymlinks 1> /dev/null | ||
34 | fi | ||
32 | # symlinks | 35 | # symlinks |
33 | elif [[ $1 == "mksymlinks" ]];then | 36 | elif [[ $1 == "mksymlinks" ]];then |
34 | tlobsd-mksymlinks $2 | 37 | tlobsd-mksymlinks $2 |