paul@102 | 1 | #!/bin/sh |
paul@102 | 2 | |
paul@102 | 3 | AGENTS="imip_person.py imip_person_outgoing.py imip_resource.py" |
paul@102 | 4 | MODULES="markup.py imip_store.py vCalendar.py vContent.py vRecurrence.py" |
paul@102 | 5 | INSTALL_DIR=/var/lib/imip-agent |
paul@102 | 6 | WEB_INSTALL_DIR=/var/www/imip-agent |
paul@102 | 7 | |
paul@102 | 8 | if [ ! -e "$INSTALL_DIR" ]; then |
paul@102 | 9 | mkdir -p "$INSTALL_DIR" |
paul@102 | 10 | fi |
paul@102 | 11 | |
paul@102 | 12 | cp $AGENTS "$INSTALL_DIR" |
paul@102 | 13 | cp $MODULES "$INSTALL_DIR" |
paul@440 | 14 | |
paul@440 | 15 | if [ ! -e "$INSTALL_DIR/imiptools" ]; then |
paul@440 | 16 | mkdir "$INSTALL_DIR"/imiptools |
paul@440 | 17 | if [ ! -e "$INSTALL_DIR/imiptools" ]; then |
paul@440 | 18 | mkdir "$INSTALL_DIR"/imiptools/handlers |
paul@440 | 19 | fi |
paul@440 | 20 | fi |
paul@440 | 21 | |
paul@102 | 22 | cp imiptools/*.py "$INSTALL_DIR"/imiptools/ |
paul@102 | 23 | cp imiptools/handlers/*.py "$INSTALL_DIR"/imiptools/handlers/ |
paul@102 | 24 | |
paul@102 | 25 | if [ ! -e "$WEB_INSTALL_DIR" ]; then |
paul@102 | 26 | mkdir -p "$WEB_INSTALL_DIR" |
paul@102 | 27 | fi |
paul@102 | 28 | |
paul@102 | 29 | cp imip_manager.py "$WEB_INSTALL_DIR" |
paul@188 | 30 | cp htdocs/styles.css "$WEB_INSTALL_DIR" |
paul@440 | 31 | |
paul@440 | 32 | if [ ! -e "$WEB_INSTALL_DIR/imipweb" ]; then |
paul@440 | 33 | mkdir "$WEB_INSTALL_DIR"/imipweb |
paul@440 | 34 | fi |
paul@440 | 35 | |
paul@440 | 36 | cp imipweb/*.py "$WEB_INSTALL_DIR"/imipweb/ |