Skip to content

Commit

Permalink
moved bin/source to source.sh, created install.sh to try and install …
Browse files Browse the repository at this point in the history
…cljenv
  • Loading branch information
cosmin committed Feb 7, 2010
1 parent 8027cda commit 70e8cd1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions install.sh
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

OS="`uname`"
INSTALL_LOCATION="`pwd`"

if [[ $OS = "Darwin" ]]; then
BASHRC="~/.profile"
else
BASHRC="~/.bashrc"
fi

echo "Initializing submodules"
git submodule update --init
touch ~/.clj_completions # this file must exist or bad things happen

echo "source $INSTALL_LOCATION/setup.sh" >> $BASHRC
echo "cljenv_autostart NOPS1" >> $BASHRC
echo "Added CLJENV setup.sh to be sourced by default"

echo "(load (concat (getenv \"CLJENV_HOME\") \"/\" \"setup.el\"))" >> ~/.emacs
echo "Added Shared Profile setup.el to Emacs"

echo ""
echo "Done."
4 changes: 2 additions & 2 deletions bin/source → source.sh
@@ -1,7 +1,7 @@
if [ -z "$BASH_SOURCE" ]; then
CLJENV_HOME="$(cd $(dirname $0)/../ && pwd)"
CLJENV_HOME="$(cd $(dirname $0)/ && pwd)"
else
CLJENV_HOME="$(cd $(dirname $BASH_SOURCE)/../ && pwd)"
CLJENV_HOME="$(cd $(dirname $BASH_SOURCE)/ && pwd)"
fi

export CLJENV_HOME
Expand Down

0 comments on commit 70e8cd1

Please sign in to comment.