From fb4e91867a12c065d0e4eb3de3e96580cbf2a849 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Sat, 26 Dec 2015 20:52:39 +0000 Subject: [PATCH] Make the script easy to run --- README.md | 9 +++++++++ install-dependencies | 12 ++++++++++++ install-tools | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100755 install-dependencies create mode 100755 install-tools diff --git a/README.md b/README.md index 7c77b3e..e26cc6b 100644 --- a/README.md +++ b/README.md @@ -1 +1,10 @@ # vigil + +### Installation + +To run vigil: (Tested in Ubuntu 15.10) + + # git clone https://github.com/ahamilton/vigil + # cd vigil + # ./install-dependencies + # ./vigil diff --git a/install-dependencies b/install-dependencies new file mode 100755 index 0000000..bdcc6e7 --- /dev/null +++ b/install-dependencies @@ -0,0 +1,12 @@ +#!/bin/bash + + +set -e + + +echo "Install the dependencies of the vigil script..." +sudo apt-get --yes install python3-minimal python3-pygments python3-pyinotify \ + python3-urwid +echo +echo "Install all the tools vigil may need..." +./install-tools diff --git a/install-tools b/install-tools new file mode 100755 index 0000000..d7effba --- /dev/null +++ b/install-tools @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + + +import subprocess +import tools + + +command = ["sudo", "apt-get", "--yes", "install"] + list(tools.dependencies()) +subprocess.check_call(command)