summaryrefslogtreecommitdiffstats
path: root/contrib/groff/font/devutf8/Makefile.sub
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-04-17 12:12:05 +0000
committerru <ru@FreeBSD.org>2001-04-17 12:12:05 +0000
commit0e0a0e6429c7113acf15c4c94bd5fe94c45f9e99 (patch)
treef3137c4283de8869ebcae1dd0fe43f590276c1dc /contrib/groff/font/devutf8/Makefile.sub
parenta812d8b090bc4edc23150bff257717b24f282e41 (diff)
downloadFreeBSD-src-0e0a0e6429c7113acf15c4c94bd5fe94c45f9e99.zip
FreeBSD-src-0e0a0e6429c7113acf15c4c94bd5fe94c45f9e99.tar.gz
Virgin import of FSF groff v1.17
Diffstat (limited to 'contrib/groff/font/devutf8/Makefile.sub')
-rw-r--r--contrib/groff/font/devutf8/Makefile.sub32
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/groff/font/devutf8/Makefile.sub b/contrib/groff/font/devutf8/Makefile.sub
new file mode 100644
index 0000000..f6ce659
--- /dev/null
+++ b/contrib/groff/font/devutf8/Makefile.sub
@@ -0,0 +1,32 @@
+DEV=utf8
+FONTS=R I B BI
+DEVFILES=$(FONTS) DESC
+CLEANADD=$(FONTS) DESC
+
+RES=240
+CPI=10
+LPI=6
+
+$(FONTS): R.proto
+ @echo Making $@
+ @-rm -f $@
+ @(charwidth=`expr $(RES) / $(CPI)` ; \
+ sed -e "s/^name [A-Z]*$$/name $@/" \
+ -e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
+ -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
+ -e "s/^internalname .*$$/internalname $@/" \
+ -e "/^internalname/s/BI/3/" \
+ -e "/^internalname/s/B/2/" \
+ -e "/^internalname/s/I/1/" \
+ -e "/^internalname .*[^ 0-9]/d" \
+ $(srcdir)/R.proto >$@)
+
+DESC: DESC.proto
+ @echo Making $@
+ @-rm -f $@
+ @sed -e "s/^res .*$$/res $(RES)/" \
+ -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
+ -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
+ -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
+ $(srcdir)/DESC.proto >$@
+
OpenPOWER on IntegriCloud