~ubuntu-branches/ubuntu/dapper/groff/dapper

« back to all changes in this revision

Viewing changes to font/devutf8/Makefile.sub

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2002-03-17 04:11:50 UTC
  • Revision ID: james.westby@ubuntu.com-20020317041150-wkgfawjc3gxlk0o5
Tags: upstream-1.17.2
ImportĀ upstreamĀ versionĀ 1.17.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DEV=utf8
 
2
FONTS=R I B BI
 
3
DEVFILES=$(FONTS) DESC
 
4
CLEANADD=$(FONTS) DESC
 
5
 
 
6
RES=240
 
7
CPI=10
 
8
LPI=6
 
9
 
 
10
$(FONTS): R.proto
 
11
        @echo Making $@
 
12
        @-rm -f $@
 
13
        @(charwidth=`expr $(RES) / $(CPI)` ; \
 
14
         sed -e "s/^name [A-Z]*$$/name $@/" \
 
15
             -e "s/^\\([^       ]*\\)   [0-9]+  /\\1    $$charwidth     /" \
 
16
             -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
 
17
             -e "s/^internalname .*$$/internalname $@/" \
 
18
             -e "/^internalname/s/BI/3/" \
 
19
             -e "/^internalname/s/B/2/" \
 
20
             -e "/^internalname/s/I/1/" \
 
21
             -e "/^internalname .*[^ 0-9]/d" \
 
22
             $(srcdir)/R.proto >$@)
 
23
 
 
24
DESC: DESC.proto
 
25
        @echo Making $@
 
26
        @-rm -f $@
 
27
        @sed -e "s/^res .*$$/res $(RES)/" \
 
28
            -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
 
29
            -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
 
30
            -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
 
31
            $(srcdir)/DESC.proto >$@
 
32