Fetch nice font from font branch, if possible

This commit is contained in:
Austin Clements 2011-09-07 12:38:24 -04:00
parent 5304c854a4
commit 5c87802de2

12
runoff
View file

@ -223,11 +223,17 @@ awk '
grep Pages: all.ps grep Pages: all.ps
# if we have the nice font, use it # if we have the nice font, use it
nicefont=../LucidaSans-Typewriter83 nicefont=LucidaSans-Typewriter83
if [ -f $nicefont ] if [ ! -f ../$nicefont ]
then
if git cat-file blob font:$nicefont > ../$nicefont~; then
mv ../$nicefont~ ../$nicefont
fi
fi
if [ -f ../$nicefont ]
then then
echo nicefont echo nicefont
(sed 1q all.ps; cat $nicefont; sed '1d; s/Courier/LucidaSans-Typewriter83/' all.ps) >allf.ps (sed 1q all.ps; cat ../$nicefont; sed "1d; s/Courier/$nicefont/" all.ps) >allf.ps
else else
echo ugly font! echo ugly font!
cp all.ps allf.ps cp all.ps allf.ps