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

« back to all changes in this revision

Viewing changes to font/devnippon/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-em69nkqd2qw26v96
Tags: 1.17.2-15.woody.1
* New Danish debconf translation (thanks, Rune B. Broberg;
  closes: #131092).
* New French debconf translation (thanks, Philippe Batailler;
  closes: #138515).

Show diffs side-by-side

added added

removed removed

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