ICAL Templating: work on porting the display of events in the mail view.
[citadel.git] / webcit / get_ical_data.sh
index 62e94b8368e2a36ddec3fced77935bedc4966a8a..fb289a570e93fd360669808735d67609a958ec71 100755 (executable)
@@ -1,8 +1,11 @@
 #!/bin/sh
-
+ICAL=/usr/local/ctdlsupport/include/libical/ical.h
+if test -f /usr/include/libical/ical.h; then 
+    ICAL=/usr/include/libical/ical.h
+fi
 (
 printf '#include "webcit.h"\n\n\nIcalEnumMap icalproperty_kind_map[] = {\n'
-cat /usr/include/libical/ical.h |\
+cat $ICAL |\
 sed 's;/\*.*\*/;;' |\
 ./get_ical_data.sed |\
 sed -e 's;.*icalproperty_kind {\(.*\)} icalproperty_kind.*;\1,;' \