svn commit: r196758 - user/edwin/locale/share/msgdef
Edwin Groothuis
edwin at FreeBSD.org
Wed Sep 2 09:54:43 UTC 2009
Author: edwin
Date: Wed Sep 2 09:54:43 2009
New Revision: 196758
URL: http://svn.freebsd.org/changeset/base/196758
Log:
Use unicode2src and iconv to convert the raw data into usable data
Modified:
user/edwin/locale/share/msgdef/Makefile
Modified: user/edwin/locale/share/msgdef/Makefile
==============================================================================
--- user/edwin/locale/share/msgdef/Makefile Wed Sep 2 09:53:32 2009 (r196757)
+++ user/edwin/locale/share/msgdef/Makefile Wed Sep 2 09:54:43 2009 (r196758)
@@ -222,7 +222,12 @@ SYMLINKS+= ../${ccln}.${cm}/${LCTYPE} ${
# Normal makes don't need to convert from .unicode to .src
. if defined(FULL)
${ccln}.src: ${ccln}.unicode
- echo ${.ALLSRC} > ${.TARGET}
+ ../../cldr/tools/unicode2src.pl \
+ --cldr=/home/edwin/unicode/cldr/1.7.1 \
+ --unidata=/home/edwin/unicode/UNIDATA/5.1.0/ \
+ --input=${.ALLSRC} \
+ --output=${.TARGET}
+
. endif
${ccln}.UTF-8.out: ${ccln}.src
@@ -231,7 +236,11 @@ ${ccln}.UTF-8.out: ${ccln}.src
.if defined(CMS_${ccln})
.for cms in ${CMS_${ccln}}
${ccln}.${cms}.out: ${ccln}.src
- grep -v '^#' < ${.ALLSRC} > ${.TARGET}
+ iconv \
+ -f UTF-8 \
+ -t ${.TARGET:S/${.ALLSRC:S/.src//}.//:S/.out//} \
+ ${.ALLSRC} > ${.TARGET} \
+ || rm ${.TARGET} && exit 0
.endfor
.endif
.endfor
More information about the svn-src-user
mailing list