From 8867f057fafafd8abcf98c8d878fd2f77a4d894f Mon Sep 17 00:00:00 2001
From: alangrafu <alvaro@graves.cl>
Date: Sat, 21 Jan 2012 23:46:42 -0800
Subject: [PATCH] Added install script used in http://lodspeakr.org/install
 (modified by Tim)

---
 utils/install | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 utils/install

diff --git a/utils/install b/utils/install
new file mode 100644
index 00000000..29935f55
--- /dev/null
+++ b/utils/install
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+# Installation script for LODSPeaKr (http://lodspeakr.org)
+# Author: Alvaro Graves (alvaro@graves.cl)
+# Modified by: Tim Lebo (lebot@rpi.edu)
+
+lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git"
+home=`basename $lodspeakr_repository | sed 's/.git//'`
+
+source ~/.bashrc
+GIT=`which git`
+
+if [ -z "$GIT" ]; then
+  echo "git is required to continue installation. Please add git to your \$PATH."
+  exit 1
+fi
+
+if [ ! -e "$home" ]; then
+   $GIT clone $lodspeakr_repository
+   cd $home
+   ./install.sh
+else
+   echo "There is already an existing directory called '$home'. Installation cancelled. Remove it first and try again."
+fi
-- 
GitLab