makeFontsConf: check for share/fonts/ in fontDirectories

Fixes #3515.
This commit is contained in:
Vladimír Čunát 2014-08-10 11:47:07 +02:00
parent 8db0b55f60
commit e26188938c

View File

@ -6,6 +6,14 @@ runCommand "fonts.conf"
inherit fontDirectories;
}
''
for fd in $fontDirectories;
do
if [ ! -d "$fd/share/fonts" ]; then
echo "ERROR: '$fd/share/fonts/' doesn't exist"
false
fi
done
xsltproc --stringparam fontDirectories "$fontDirectories" \
--stringparam fontconfig "${fontconfig}" \
--path ${fontconfig}/share/xml/fontconfig \