Infrastructure: if we don't find the ical headers during boostrap, abort.
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 26 Mar 2013 19:13:26 +0000 (20:13 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 26 Mar 2013 19:13:26 +0000 (20:13 +0100)
webcit/bootstrap
webcit/scripts/get_ical_data.sh

index 2c1f5941b7c77788d10e0c4a031bf3719a8392d2..9f9d712afd453edf486c5245fed6dbe419605a2a 100755 (executable)
@@ -6,31 +6,32 @@
 # Remove any vestiges of pre-6.05 build environments
 rm -f .libs modules *.so *.lo *.la 2>/dev/null
 
-./scripts/get_ical_data.sh
+if ./scripts/get_ical_data.sh; then
 
-echo ... running aclocal ...
-aclocal
-
-echo ... running autoconf ...
-autoconf
+    echo ... running aclocal ...
+    aclocal
+    
+    echo ... running autoconf ...
+    autoconf
 
 # If your autoconf version changes, the autom4te.cache stuff will mess you up.
 # Get rid of it.
-echo ... removing autoheader cache files ...
-rm -rf autom4te*.cache
-
-echo ... running autoheader ...
-autoheader
-
-echo ... mk_module_init.sh ...
-./scripts/mk_module_init.sh
-
-
-echo
-echo This script has been tested with autoconf 2.53 and
-echo automake 1.5. Other versions may work, but I recommend the latest
-echo compatible versions of these.
-echo
-echo Also note that autoconf and automake should be configured
-echo with the same prefix.
-echo
+    echo ... removing autoheader cache files ...
+    rm -rf autom4te*.cache
+    
+    echo ... running autoheader ...
+    autoheader
+    
+    echo ... mk_module_init.sh ...
+    ./scripts/mk_module_init.sh
+
+
+    echo
+    echo This script has been tested with autoconf 2.53 and
+    echo automake 1.5. Other versions may work, but I recommend the latest
+    echo compatible versions of these.
+    echo
+    echo Also note that autoconf and automake should be configured
+    echo with the same prefix.
+    echo
+fi
index 96426673e07dae886552468a370d6e5a640a2d7e..3f80db31bb5e96730564273f3630410760259b80 100755 (executable)
@@ -4,6 +4,11 @@ if test -f /usr/include/libical/ical.h; then
     ICAL=/usr/include/libical/ical.h
 fi
 
+if test ! -f ${ICAL}; then 
+    echo "failed to locate libical headers - please install the libical development packages or heardes"
+    exit 500
+fi
+
 ICALTYPES="icalproperty_kind"\
 " icalcomponent_kind"\
 " icalrequeststatus"\