1.1 --- a/tools/install.sh Fri Jan 29 22:17:47 2016 +0100
1.2 +++ b/tools/install.sh Fri Jan 29 22:25:02 2016 +0100
1.3 @@ -26,12 +26,13 @@
1.4 cp $AGENTS "$INSTALL_DIR"
1.5 cp $MODULES "$INSTALL_DIR"
1.6
1.7 -if [ ! -e "$INSTALL_DIR/imiptools" ]; then
1.8 - mkdir "$INSTALL_DIR/imiptools"
1.9 -fi
1.10 -if [ ! -e "$INSTALL_DIR/imiptools/handlers" ]; then
1.11 - mkdir "$INSTALL_DIR/imiptools/handlers"
1.12 -fi
1.13 +for DIR in "$INSTALL_DIR/imiptools" \
1.14 + "$INSTALL_DIR/imiptools/handlers" \
1.15 + "$INSTALL_DIR/imiptools/handlers/scheduling" ; do
1.16 + if [ ! -e "$DIR" ]; then
1.17 + mkdir "$DIR"
1.18 + fi
1.19 +done
1.20
1.21 # Remove any symbolic link to the config module.
1.22
1.23 @@ -43,6 +44,13 @@
1.24
1.25 cp imiptools/*.py "$INSTALL_DIR/imiptools/"
1.26 cp imiptools/handlers/*.py "$INSTALL_DIR/imiptools/handlers/"
1.27 +cp imiptools/handlers/scheduling/*.py "$INSTALL_DIR/imiptools/handlers/scheduling/"
1.28 +
1.29 +# Remove migrated modules.
1.30 +
1.31 +if [ -e "$INSTALL_DIR/imiptools/handlers/scheduling.py" ]; then
1.32 + rm "$INSTALL_DIR/imiptools/handlers/scheduling.py"*
1.33 +fi
1.34
1.35 # Install the config module in a more appropriate location.
1.36