• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# Copyright (C) 2013-2015, International Business Machines Corporation
3#  and others.  All Rights Reserved.
4#
5
6if [ "x${CLDR_DIR}" = "x" ];
7then
8   echo "You must set the CLDR_DIR environment variable"
9   exit 1
10fi
11
12cd ${CLDR_DIR}
13find common exemplars keyboards seed specs tools/java tools/cldr-unittest -type f -print | while read filename
14do
15   echo "Processing... ${filename}"
16   ext=`echo ${filename} | cut -f2 -d'.'`
17   if [ "x${ext}" = "xxml" ];
18   then
19      svn propset -q svn:eol-style native ${filename}
20      svn propset -q svn:keywords "Author Id Revision" ${filename}
21      svn propset -q svn:mime-type text/xml ${filename}
22   fi
23   if [ "x${ext}" = "xjava" ];
24   then
25      svn propset -q svn:eol-style native ${filename}
26      svn propset -q svn:mime-type "text/plain;charset=utf-8" ${filename}
27   fi
28   if [ "x${ext}" = "xtxt" ];
29   then
30      svn propset -q svn:eol-style native ${filename}
31      svn propset -q svn:mime-type "text/plain" ${filename}
32   fi
33   if [ "x${ext}" = "xcss" ];
34   then
35      svn propset -q svn:eol-style native ${filename}
36      svn propset -q svn:mime-type "text/css" ${filename}
37   fi
38   if [ "x${ext}" = "xhtml" ];
39   then
40      svn propset -q svn:eol-style native ${filename}
41      svn propset -q svn:mime-type "text/html" ${filename}
42   fi
43done
44