depot/third_party/nixpkgs/pkgs/tools/graphics/gnuplot/set-gdfontpath-from-fontconfig.sh

5 lines
130 B
Bash
Raw Normal View History

p=( $(fc-list : file | sed "s@/[^/]*: @@" | sort -u) )
IFS=:
export GDFONTPATH="${GDFONTPATH}${GDFONTPATH:+:}${p[*]}"
unset IFS p