Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fetch nice font from font branch, if possible

  • Loading branch information...
commit 5c87802de2b1d3fc8c912ab2995760aa8d5b7dbf 1 parent 5304c85
@aclements aclements authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 runoff
View
12 runoff
@@ -223,11 +223,17 @@ awk '
grep Pages: all.ps
# if we have the nice font, use it
-nicefont=../LucidaSans-Typewriter83
-if [ -f $nicefont ]
+nicefont=LucidaSans-Typewriter83
+if [ ! -f ../$nicefont ]
+then
+ if git cat-file blob font:$nicefont > ../$nicefont~; then
+ mv ../$nicefont~ ../$nicefont
+ fi
+fi
+if [ -f ../$nicefont ]
then
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
echo ugly font!
cp all.ps allf.ps

0 comments on commit 5c87802

Please sign in to comment.
Something went wrong with that request. Please try again.