3
0
Fork 0
forked from mirrors/nixpkgs

google-fonts: Add a check to ensure that there are no duplicate font names

Issue #20282.
This commit is contained in:
Eelco Dolstra 2016-11-14 17:35:35 +01:00
parent 52d4599b52
commit 2c2b6ae455

View file

@ -28,6 +28,11 @@ stdenv.mkDerivation rec {
ofl/mrbedford \
ofl/siamreap \
ofl/terminaldosislight
if find . -name "*.ttf" | sed 's|.*/||' | sort | uniq -c | sort -n | grep -v '^.*1 '; then
echo "error: duplicate font names"
exit 1
fi
'';
installPhase = ''