imip-agent

tools/install.sh

320:d8832021004b
2015-02-10 Paul Boddie Moved UTC conversion into the free/busy-specific function.
     1 #!/bin/sh     2      3 AGENTS="imip_person.py imip_person_outgoing.py imip_resource.py"     4 MODULES="markup.py imip_store.py vCalendar.py vContent.py vRecurrence.py"     5 INSTALL_DIR=/var/lib/imip-agent     6 WEB_INSTALL_DIR=/var/www/imip-agent     7      8 if [ ! -e "$INSTALL_DIR" ]; then     9     mkdir -p "$INSTALL_DIR"    10 fi    11     12 cp $AGENTS "$INSTALL_DIR"    13 cp $MODULES "$INSTALL_DIR"    14 mkdir "$INSTALL_DIR"/imiptools    15 mkdir "$INSTALL_DIR"/imiptools/handlers    16 cp imiptools/*.py "$INSTALL_DIR"/imiptools/    17 cp imiptools/handlers/*.py "$INSTALL_DIR"/imiptools/handlers/    18     19 if [ ! -e "$WEB_INSTALL_DIR" ]; then    20     mkdir -p "$WEB_INSTALL_DIR"    21 fi    22     23 cp imip_manager.py "$WEB_INSTALL_DIR"    24 cp htdocs/styles.css "$WEB_INSTALL_DIR"