summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-07-31 09:23:03 +0200
committerAndreas Maunz <andreas@maunz.de>2012-07-31 09:23:03 +0200
commit829d4145e413f75f7e1986d6091859c4b77de563 (patch)
tree1650ae5fe99e08cd8d0b1a23a1ca037e6fc10b94 /install
parent8fe2382c46b665ff59a95fe4194c7b6da0b1c283 (diff)
Added 4store install
Diffstat (limited to 'install')
-rwxr-xr-xinstall23
1 files changed, 6 insertions, 17 deletions
diff --git a/install b/install
index 5d0f9e3..0a3a1e7 100755
--- a/install
+++ b/install
@@ -1,11 +1,9 @@
#!/bin/sh
+
# Main Opentox-ruby install script
# Author: Christoph Helma, Andreas Maunz
-if [ "$(id -u)" = "0" ]; then
- echo "This script must not be run as root" 1>&2
- exit 1
-fi
+[ "`id -u`" = "0" ] && echo "This script must not be run as root" 1>&2 && exit 1
echo
echo "OpenTox Ruby"
@@ -41,7 +39,8 @@ echo
[ -f $OT_PREFIX/install/utils.sh ] || (cmd="mkdir -p $OT_PREFIX/install && cp utils.sh $OT_PREFIX/install" && run_cmd "$cmd" "Install utils.sh to OT_PREFIX")
[ -f $HOME/.opentox/config/install/config.sh ] || (cmd="mkdir -p $HOME/.opentox/config/install && cp config.sh $HOME/.opentox/config/install" && run_cmd "$cmd" "Install config.sh to CONFIG (~/.opentox)")
-. ./base-install.sh # Debian specific; disable for others.
+. ./base-install # Debian specific; disable this for others.
+./4store-install # Download, compile and build 4store. Install to OT_PREFIX.
if [ ! -d ~/.rbenv ]; then
cmd="$GIT clone git://github.com/sstephenson/rbenv.git ~/.rbenv" && run_cmd "$cmd" "rbenv"
@@ -56,15 +55,5 @@ fi
[ -f $HOME/.opentox/config/ambit_descriptors.yaml ] || (cmd="cp ambit_descriptors.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Ambit keys file")
[ -f $HOME/.opentox/config/jl_keys.yaml ] || (cmd="cp jl_keys.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Joelib keys file")
-echo
-echo "Installation finished."
-echo "Destination (OT_PREFIX): '$OT_PREFIX'"
-echo
-echo "IMPORTANT: How to configure your system:"
-echo "IMPORTANT: a) Include '$OT_UI_CONF' in shell startup (e.g. ~/.bashrc)."
-echo "IMPORTANT: b) Manually source '$OT_UI_CONF' every time."
-echo "IMPORTANT: The command in both cases: '. $OT_UI_CONF'"
-echo "IMPORTANT: NOW would be the best time to configure!"
-echo
-echo "Thank you for your attention."
-echo
+notify
+