On Unix, you may want to use the td-switch
script (see below)
to avoid these installation steps and switch easily from your system's texdoc
to the development version, once you got a copy of the repository.
The following explanations use TdDev
to denote the path to the
directory holding the development version of texdoc. Names in all caps like
VARIABLE
are kpse variables; you can
get their values using kpsewhich --var-value VARIABLE
.
TdDev/script
to
TEXMFHOME/scripts/texdoc
. Then symlink texdoc.tlu
from this directory to texdoc
in a directory that comes early
in your path. On a typical machine, the following commands do the trick.
mkdir -p TEXMFHOME/scripts/; rm -rf TEXMFHOME/scripts/texdoc
ln -s TdDev/script TEXMFHOME/scripts/texdoc
ln -s TEXMFHOME/scripts/texdoc/texdoc.tlu ~/bin/texdoc
TdDev/script
to
TEXMFHOME/scripts/texdoc
.TdDev/texdoc.cnf
as
TEXMFHOME/texdoc/texdoc-dist.cnf
(notice the -dist
part). It will completely override the configuration files in
TEXMFDIST
and TEXMFLOCAL
.Alternatively, you can skip the installation instructions above and use the
td-switch
script after installing this wrapper as your texdoc program (typically in
~/bin
). This is the setup I use; don't forget to adapt the
git_repo
variable to your local configuration. Installation
advice:
cd ~/bin
wget http://tug.org/texdoc/dev/pre-0.81/td-switch
# edit git_repo
wget http://tug.org/texdoc/dev/pre-0.81/texdoc
chmod +x td-switch texdoc
td-switch git
activates the development version of texdoc,
td-switch sys
switches back to you system's version.