diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-09-06 23:39:52 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-09-06 23:39:52 +0200 |
commit | 31a8240793afd6a03fd780982144e6de42597458 (patch) | |
tree | 979bd97099939fd0cae665b9891c45c8bb63c298 /context-mkiv/context-setup-env.sh | |
parent | d0cbc8b72dc47be67b41c7f51aa58650f54194d3 (diff) | |
download | arch-packages-31a8240793afd6a03fd780982144e6de42597458.tar.gz |
context-mkiv: add preliminary WIP PKGBUILD and env wrapper
Diffstat (limited to 'context-mkiv/context-setup-env.sh')
-rw-r--r-- | context-mkiv/context-setup-env.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/context-mkiv/context-setup-env.sh b/context-mkiv/context-setup-env.sh new file mode 100644 index 0000000..99a8def --- /dev/null +++ b/context-mkiv/context-setup-env.sh @@ -0,0 +1,16 @@ +# Context executable wrapper +declare -r context_root=/usr/share/texmf +declare font_dirs="" +if [[ -d "${HOME}/.fonts" ]]; then + declare font_dirs+="${HOME}/.fonts" +fi +if [[ -d /usr/share/fonts ]]; then + [[ -n "${font_dirs}" ]] && declare font_dirs+=";" + declare font_dirs+=/usr/share/fonts +fi + +declare -x OSFONTDIR="${font_dirs:-}" +declare -x TEXMFCACHE=${HOME}/.texmf/texmf-cache +declare -x TEXMFOS=${context_root}/texmf-context + +# vim:et:ft=sh:sw=2:ts=8 |