aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-03-28 09:23:21 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-03-28 09:23:21 +0100
commit1b63fcabc2cb3c100c1a50136ce1e160e042b332 (patch)
tree05f25fdc8305a86752906a411d81554d24e6e9dc
parent910f40efb89c71fd39512417d8dc7b54d8f7a773 (diff)
downloadtexlive-openbsd-1b63fcabc2cb3c100c1a50136ce1e160e042b332.tar.gz
new tlobsd wrapper
-rw-r--r--README.md12
-rwxr-xr-xtl-build.sh4
-rw-r--r--tlobsd16
-rw-r--r--tlobsd-mksymlinks (renamed from mktexobsdsymlinks)0
4 files changed, 24 insertions, 8 deletions
diff --git a/README.md b/README.md
index 39ebe0c..ac4b8dc 100644
--- a/README.md
+++ b/README.md
@@ -197,21 +197,21 @@ Package installation and updates
197To install new packages and to update already existing ones, do: 197To install new packages and to update already existing ones, do:
198 198
199```sh 199```sh
200obsd-tlmgr update --all 200tlobsd tlmgr update --all
201``` 201```
202 202
203This command requires the `subversion` package. 203This command requires the `subversion` package.
204 204
205In TeX Live for OpenBSD, `obsd-tlmgr` replaces the standard `tlmgr` 205In TeX Live for OpenBSD, `tlobsd tlmgr` replaces the standard `tlmgr`
206command which is the command name of TeX Live package manager. 206command which is the command name of TeX Live package manager.
207`obsd-tlmgr` can be used with the exact same options and arguments as 207`tlobsd tlmgr` can be used with the exact same options and arguments as
208`tlmgr`. 208`tlmgr`.
209 209
210More information can be found [on this 210More information can be found [on this
211page](https://tug.org/texlive/pkginstall.html) or in the [full `tlmgr` 211page](https://tug.org/texlive/pkginstall.html) or in the [full `tlmgr`
212documentation](https://tug.org/texlive/doc/tlmgr.html). 212documentation](https://tug.org/texlive/doc/tlmgr.html).
213 213
214`obsd-tlmgr` updates the links to a number of scripts that are shipped 214`tlobsd tlmgr` updates the links to a number of scripts that are shipped
215within TeX Live and are found in the `texmf-dist/scripts/` directory. 215within TeX Live and are found in the `texmf-dist/scripts/` directory.
216Most of them can be invoked by users from symlinks installed along 216Most of them can be invoked by users from symlinks installed along
217with the usual TeX Live binaries. As OpenBSD is not officially 217with the usual TeX Live binaries. As OpenBSD is not officially
@@ -224,10 +224,10 @@ to update all existing links and install new links after using
224`tlmgr`, like so: 224`tlmgr`, like so:
225 225
226```sh 226```sh
227mktexobsdsymlinks 227tlobsd mksymlinks
228``` 228```
229 229
230Just as `obsd-tlmgr`, this command requires the `subversion` package. 230Just as `tlobsd tlmgr`, this command requires the `subversion` package.
231 231
232Building the sources 232Building the sources
233-------------------- 233--------------------
diff --git a/tl-build.sh b/tl-build.sh
index 2abd033..dcf3bfe 100755
--- a/tl-build.sh
+++ b/tl-build.sh
@@ -148,8 +148,8 @@ function include_asymptote {
148function include_extras { 148function include_extras {
149 if [[ -d ${tl_sourcedir}/inst/bin ]];then 149 if [[ -d ${tl_sourcedir}/inst/bin ]];then
150 tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` 150 tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin`
151 install -m 0755 ${this_dir}/mktexobsdsymlinks ${tl_bindir}/mktexobsdsymlinks 151 install -m 0755 ${this_dir}/tlobsd-mksymlinks ${tl_bindir}/tlobsd-mksymlinks
152 install -m 0755 ${this_dir}/obsd-tlmgr ${tl_bindir}/obsd-tlmgr 152 install -m 0755 ${this_dir}/tlobsd ${tl_bindir}/tlobsd
153 fi 153 fi
154} 154}
155 155
diff --git a/tlobsd b/tlobsd
new file mode 100644
index 0000000..50adc5a
--- /dev/null
+++ b/tlobsd
@@ -0,0 +1,16 @@
1#!/bin/sh
2#
3# $TeX Live for OpenBSD, 2024/03/28 $
4
5cmd=$@
6
7# tlmgr
8if [[ $1 == "tlmgr" ]];then
9 $cmd
10 [[ $? -eq 0 ]] && mktexobsdsymlinks 1> /dev/null
11fi
12
13# symlinks
14if [[ $1 == "mksymlinks" ]];then
15 tlobsd-mksymlinks $2
16fi
diff --git a/mktexobsdsymlinks b/tlobsd-mksymlinks
index efcb780..efcb780 100644
--- a/mktexobsdsymlinks
+++ b/tlobsd-mksymlinks