Fix space-containing name processing

svn path=/nixos/trunk/; revision=27313
This commit is contained in:
Michael Raskin 2011-05-28 20:08:49 +00:00
parent 25bb8b3d55
commit be85cdacfd

View File

@ -123,10 +123,10 @@ let
fontDirs=\"\$fontDirs \$(dirname \$i)\"; fontDirs=\"\$fontDirs \$(dirname \$i)\";
done; done;
mkdir -p \$out/share/X11-fonts/; mkdir -p \$out/share/X11-fonts/;
for i in \$(find \$fontDirs -type f -o -type l); do find \$fontDirs -type f -o -type l | while read i; do
j=\${i##*/} j=\"\${i##*/}\"
if ! test -e \$out/share/X11-fonts/\${j}; then if ! test -e \"\$out/share/X11-fonts/\${j}\"; then
ln -s \$i \$out/share/X11-fonts/\${j}; ln -s \"\$i\" \"\$out/share/X11-fonts/\${j}\";
fi; fi;
done; done;
cd \$out/share/X11-fonts/ cd \$out/share/X11-fonts/