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@102 | 14 | mkdir "$INSTALL_DIR"/imiptools |
paul@102 | 15 | mkdir "$INSTALL_DIR"/imiptools/handlers |
paul@102 | 16 | cp imiptools/*.py "$INSTALL_DIR"/imiptools/ |
paul@102 | 17 | cp imiptools/handlers/*.py "$INSTALL_DIR"/imiptools/handlers/ |
paul@102 | 18 | |
paul@102 | 19 | if [ ! -e "$WEB_INSTALL_DIR" ]; then |
paul@102 | 20 | mkdir -p "$WEB_INSTALL_DIR" |
paul@102 | 21 | fi |
paul@102 | 22 | |
paul@102 | 23 | cp imip_manager.py "$WEB_INSTALL_DIR" |
paul@188 | 24 | cp htdocs/styles.css "$WEB_INSTALL_DIR" |