MythTV  master
strings.h.sh
Go to the documentation of this file.
1 #!/bin/sh
2 
3 cat << EOF > strings.h
4 /* WARNING - Don't edit this file!
5  * This file should be automatically generated by $0
6  */
7 
8 void strings_null() {
9  // For Day-of-week
10  String::DayOfWeek::tr("MON");
11  String::DayOfWeek::tr("TUE");
12  String::DayOfWeek::tr("WED");
13  String::DayOfWeek::tr("THU");
14  String::DayOfWeek::tr("FRI");
15  String::DayOfWeek::tr("SAT");
16  String::DayOfWeek::tr("SUN");
17 
18  // For Wind Direction
19  String::WindDirection::tr("N");
20  String::WindDirection::tr("NNE");
21  String::WindDirection::tr("NE");
22  String::WindDirection::tr("ENE");
23  String::WindDirection::tr("E");
24  String::WindDirection::tr("ESE");
25  String::WindDirection::tr("SE");
26  String::WindDirection::tr("SSE");
27  String::WindDirection::tr("S");
28  String::WindDirection::tr("SSW");
29  String::WindDirection::tr("SW");
30  String::WindDirection::tr("WSW");
31  String::WindDirection::tr("W");
32  String::WindDirection::tr("WNW");
33  String::WindDirection::tr("NW");
34  String::WindDirection::tr("NNW");
35 EOF
36 
37 
38 cat << EOF >> strings.h
39 
40  // WeatherTypes.dat
41 EOF
42 cat ../mythweather/weathertypes.dat | cut -f2 -d, | while read a ; do
43  echo ' String::WeatherType::tr("'$a'");' >> strings.h
44 done
45 
46 #
47 #cat << EOF >> strings.h
48 #
49 # // Accid.dat
50 #EOF
51 ##29::CHXX0243::Abag Qi, China
52 #cat ../mythweather/accid.dat | grep "::" | cut -f5 -d: | while read a ; do
53 # echo ' String::Accid::tr("'$a'");' >> strings.h
54 #done
55 #
56 #
57 
58 cat << EOF >> strings.h
59 }
60 EOF