aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-09-04 07:32:56 +0200
committerRobert Alessi <alessi@robertalessi.net>2024-09-04 07:32:56 +0200
commit620f8f527093f786026c9d875b50630a30ecd3c6 (patch)
tree55cfbbd3cc50850546dfc7bc79034bca43f39352
parent18bef47da28512048f090a78bd5ee7464d485489 (diff)
downloadtexlive-openbsd-620f8f527093f786026c9d875b50630a30ecd3c6.tar.gz
tlobsd: do not run mksymlinks unless ls-R has been updated
-rw-r--r--tlobsd5
1 files changed, 4 insertions, 1 deletions
diff --git a/tlobsd b/tlobsd
index 04187ba..41cfe1e 100644
--- a/tlobsd
+++ b/tlobsd
@@ -27,8 +27,11 @@ elif [[ $1 == "help" ]];then
27 $cmd 27 $cmd
28# tlmgr 28# tlmgr
29elif [[ $1 == "tlmgr" ]];then 29elif [[ $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
33elif [[ $1 == "mksymlinks" ]];then 36elif [[ $1 == "mksymlinks" ]];then
34 tlobsd-mksymlinks $2 37 tlobsd-mksymlinks $2