* first work on doing ical elements in templates. does nothing usefull yet.
[citadel.git] / webcit / get_ical_data.sh
1 #!/bin/sh
2
3 (
4 printf '#include "webcit.h"\n\n\nIcalEnumMap icalproperty_kind_map[] = {\n'
5 cat /usr/include/libical/ical.h |\
6 sed 's;/\*.*\*/;;' |\
7 ./get_ical_data.sed |\
8 sed -e 's;.*icalproperty_kind {\(.*\)} icalproperty_kind.*;\1,;' \
9     -e 's;/\*.*\*/;;' \
10     -e 's;/;\n/\n;g' \
11     -e 's;,;,\n;g' \
12     -e 's; *;;g' \
13     -e 's;^t*;;g' \
14     -e 's;\=0;;g'|\
15 sed -e 's;\(.*\),;{HKEY("\1"), \1},;'
16 printf '{"", 0, 0}\n};\n' 
17
18 )>ical_maps.c