Commits

Michał Odnous committed dab1b06

Initial version of do-it-all script.

Comments (0)

Files changed (2)

scripts/install_and_run_PyHO.sh

+#!/bin/bash
+
+INSTANCES=${INSTANCES:-4}  # How many instances to run.
+BRANCH=${BRANCH:-bootstrapping-ubuntu}
+
+clear
+echo "
+###################
+#       PyHO      #
+###################"
+
+echo -e "\nThis script will:
+    1. Download latest PyHO version.
+    2. Install all requirements (for Ubuntu 12.04).
+    3. Install PyHO project in user mode.
+    4. Run ${INSTANCES} instances of example FMDT evaluator."
+
+COUNT=10
+echo -e "\nRunning installation in ${COUNT} seconds. Press Ctrl+C to stop."
+
+# while [[ $COUNT > 0 ]]; do
+#     echo -n "${COUNT} "
+#     sleep 1
+#     let COUNT=COUNT-1
+# done
+echo -e "\n"
+
+
+echo -e "Downloading sources...\n"
+URL="https://bitbucket.org/odiroot/pyho/get/${BRANCH}.zip"
+ZIP_OUTPUT="pyho.zip"
+wget "${URL}" -O "${ZIP_OUTPUT}"
+
+echo -e "Unpacking sources...\n"
+TARGET="PyHO"
+unzip -q -o "${ZIP_OUTPUT}" -d "${TARGET}"
+
+# Navigate to ZIP's top-level dir.
+cd "${TARGET}"/odiroot-pyho-*
+
+# Install requirements and PyHO
+./scripts/ubuntu_dependencies.sh
+

scripts/ubuntu_dependencies.sh

 echo -e "\nThis script will install all necessary dependencies for
 PyHO project on Ubuntu 12.04.\n\n"
 
-echo -e "Running installation in 5 seconds. Press Ctrl+C to stop.\n"
-
-COUNT=5
-while [[ $COUNT > 0 ]]; do
-    echo $COUNT
-    sleep 1
-    let COUNT=COUNT-1
-done
 
 echo -e "Updating package database...\n"
 sudo apt-get update 1>/dev/null
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.