Merge from vendor branch OPENSSH:
[dragonfly.git] / share / i18n / csmapper / ISO-8859 / Makefile.inc
1 # $NetBSD: src/share/i18n/csmapper/ISO-8859/Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
2 # $DragonFly: src/share/i18n/csmapper/ISO-8859/Makefile.inc,v 1.1 2005/03/10 16:19:35 joerg Exp $
3
4 .PATH: ${.CURDIR}/ISO-8859
5
6 SRCS_mapper.dir+=       mapper.dir.ISO-8859
7 SRCS_charset.pivot+=    charset.pivot.ISO-8859
8 CLEANFILES+=            mapper.dir.ISO-8859 charset.pivot.ISO-8859
9 PART_ISO-8859!=         sed '/^\#/d;/^$$/d;' ${.CURDIR}/ISO-8859/ISO-8859.part
10
11 .for i in ${PART_ISO-8859}
12 .if exists(${.CURDIR}/ISO-8859/ISO-8859-$i%UCS.src)
13 FILES+=                         ISO-8859-$i%UCS.mps
14 CLEANFILES+=                    ISO-8859-$i%UCS.mps
15 FILESDIR_ISO-8859-$i%UCS.mps=   ${BINDIR}/ISO-8859
16 .endif
17 .if exists(${.CURDIR}/ISO-8859/UCS%ISO-8859-$i.src)
18 FILES+=                         UCS%ISO-8859-$i.mps
19 CLEANFILES+=                    UCS%ISO-8859-$i.mps
20 FILESDIR_UCS%ISO-8859-$i.mps=   ${BINDIR}/ISO-8859
21 .endif
22 .endfor
23
24 mapper.dir.ISO-8859: ${.CURDIR}/ISO-8859/ISO-8859.part
25         (\
26             echo "# ISO-8859";\
27             printf '%-32s%-16s\n' ISO-8859-1/UCS mapper_none;\
28             printf '%-32s%-16s%s\n' UCS/ISO-8859-1 mapper_zone 0x00-0xFF;\
29             for i in ${PART_ISO-8859}; do \
30                 printf '%-32s%-16s%s\n' ISO-8859-$$i'/UCS' mapper_std \
31                     ISO-8859/ISO-8859-$$i'%UCS.mps';\
32                 printf '%-32s%-16s%s\n' UCS/ISO-8859-$$i mapper_std \
33                     'ISO-8859/UCS%ISO-8859-'$$i'.mps';\
34                 printf '%-32s%-16s%s\n' ISO-8859-$$i':GR/ISO-8859-'$$i \
35                     mapper_zone '0x00 - 0x7F : +0x80';\
36                 printf '%-32s%-16s%s\n' ISO-8859-$$i'/ISO-8859-'$$i':GR' \
37                     mapper_zone '0x80 - 0xFF : -0x80';\
38                 printf '%-32s%-16s%s\n' ISO-8859-$$i':GR/UCS' mapper_serial \
39                     ISO-8859-$$i':GR/ISO-8859-'$$i',ISO-8859-'$$i'/UCS';\
40                 printf '%-32s%-16s%s\n' UCS/ISO-8859-$$i':GR' mapper_serial \
41                     UCS/ISO-8859-$$i',ISO-8859-'$$i'/ISO-8859-'$$i':GR';\
42             done;\
43             echo;\
44         ) > ${.TARGET}
45
46 charset.pivot.ISO-8859: ${.CURDIR}/ISO-8859/ISO-8859.part
47         (\
48             echo "# ISO-8859";\
49             for i in ${PART_ISO-8859}; do \
50                 printf "%-32s%-32s%d\n" ISO-8859-$$i UCS 1;\
51                 printf "%-32s%-32s%d\n" UCS ISO-8859-$$i 1;\
52                 printf "%-32s%-32s%d\n" ISO-8859-$$i':GR' UCS 1;\
53                 printf "%-32s%-32s%d\n" UCS ISO-8859-$$i':GR' 1;\
54             done;\
55             echo;\
56         ) > ${.TARGET}