summaryrefslogtreecommitdiff
path: root/context-mkiv/context-setup-env.sh
blob: 99a8def2a5f9659706c685a764c38d1efae25551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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