diff options
author | Anish Athalye <aathalye@me.com> | 2014-03-20 17:42:37 -0400 |
---|---|---|
committer | Anish Athalye <aathalye@me.com> | 2014-03-20 21:59:23 -0400 |
commit | 4da9a85b302381cf6d4670daa2f880bbaf34ecc3 (patch) | |
tree | d21e69b06e087064408971c77899a0ca0960ba36 /tools | |
parent | 60a560e97699a1d9a4320b8e787a50b1a9a7734d (diff) |
Add example install script
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/git-submodule/install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/git-submodule/install b/tools/git-submodule/install new file mode 100755 index 0000000..c60029d --- /dev/null +++ b/tools/git-submodule/install @@ -0,0 +1,12 @@ +#!/bin/bash + +CONFIG="install.conf.json" +DOTBOT_DIR="dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "${BASEDIR}" +git submodule update --init --recursive ${DOTBOT_DIR} + +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" $@ |