Use find instead of cp for installFonts.

This allows fonts to be installed from anywhere in an unzipped file
rather than having to cd deep into the directory and come back out in
order for e.g. `forceCopy` to work correctly.
This commit is contained in:
Ricky Elrod 2014-05-07 03:52:21 -04:00
parent 97dc8a88e5
commit 8263996d3a

View File

@ -545,11 +545,11 @@ let inherit (builtins) head tail trace; in
mkdir -p $out/share/texmf/fonts/enc/${retrievedName} mkdir -p $out/share/texmf/fonts/enc/${retrievedName}
mkdir -p $out/share/texmf/fonts/map/${retrievedName} mkdir -p $out/share/texmf/fonts/map/${retrievedName}
cp *.ttf $out/share/fonts/truetype/public/${retrievedName} || echo No TrueType fonts find -name '*.ttf' -exec cp {} $out/share/fonts/truetype/public/${retrievedName} \;
cp *.otf $out/share/fonts/opentype/public/${retrievedName} || echo No OpenType fonts find -name '*.otf' -exec cp {} $out/share/fonts/opentype/public/${retrievedName} \;
cp *.{pfm,afm,pfb} $out/share/fonts/type1/public/${retrievedName} || echo No Type1 Fonts find -name '*.pfm' -o -name '*.afm' -o -name '*.pfb' -exec cp {} $out/share/fonts/type1/public/${retrievedName} \;
cp *.enc $out/share/texmf/fonts/enc/${retrievedName} || echo No fontenc data find -name '*.enc' -exec cp {} $out/share/texmf/fonts/enc/${retrievedName} \;
cp *.map $out/share/texmf/fonts/map/${retrievedName} || echo No fontmap data find -name '*.map' -exec cp {} $out/share/texmf/fonts/map/${retrievedName} \;
'') ["minInit" "defEnsureDir"]; '') ["minInit" "defEnsureDir"];
simplyShare = shareName: fullDepEntry ('' simplyShare = shareName: fullDepEntry (''