Removed the 'room=' parameter from the wiki view. This functionality is provided...
[citadel.git] / webcit / get_ical_data.sh
1 #!/bin/sh
2 ICAL=/usr/local/ctdlsupport/include/libical/ical.h
3 if test -f /usr/include/libical/ical.h; then 
4     ICAL=/usr/include/libical/ical.h
5 fi
6 (
7 printf '#include "webcit.h"\n\n\nIcalEnumMap icalproperty_kind_map[] = {\n'
8 cat $ICAL |\
9 sed 's;/\*.*\*/;;' |\
10 ./get_ical_data.sed |\
11 sed -e 's;.*icalproperty_kind {\(.*\)} icalproperty_kind.*;\1,;' \
12     -e 's;/\*.*\*/;;' \
13     -e 's;/;\n/\n;g' \
14     -e 's;,;,\n;g' \
15     -e 's; *;;g' \
16     -e 's;^t*;;g' \
17     -e 's;\=0;;g'|\
18 sed -e 's;\(.*\),;{HKEY("\1"), \1},;'
19 printf '{"", 0, 0}\n};\n' 
20
21 )>ical_maps.c