+echo "platform est $platform"
+
+case $platform in
+ Linux) libreoffice="libreoffice" ;;
+ CYGWIN*) libreoffice="soffice" ;;
+ *) print "Unkown platform $platform"
+ exit 1;;
+esac
+
+if [[ ! -x $(which "$libreoffice") ]] ; then
+ echo "Cannot find libreoffice executable"
+ echo "Make sure it is installed and the PATH variable includes its path"