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 15 if [ ! -e "$INSTALL_DIR/imiptools" ]; then 16 mkdir "$INSTALL_DIR"/imiptools 17 if [ ! -e "$INSTALL_DIR/imiptools" ]; then 18 mkdir "$INSTALL_DIR"/imiptools/handlers 19 fi 20 fi 21 22 cp imiptools/*.py "$INSTALL_DIR"/imiptools/ 23 cp imiptools/handlers/*.py "$INSTALL_DIR"/imiptools/handlers/ 24 25 if [ ! -e "$WEB_INSTALL_DIR" ]; then 26 mkdir -p "$WEB_INSTALL_DIR" 27 fi 28 29 cp imip_manager.py "$WEB_INSTALL_DIR" 30 cp htdocs/styles.css "$WEB_INSTALL_DIR" 31 32 if [ ! -e "$WEB_INSTALL_DIR/imipweb" ]; then 33 mkdir "$WEB_INSTALL_DIR"/imipweb 34 fi 35 36 cp imipweb/*.py "$WEB_INSTALL_DIR"/imipweb/