From 4da9a85b302381cf6d4670daa2f880bbaf34ecc3 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Thu, 20 Mar 2014 17:42:37 -0400 Subject: [PATCH] Add example install script --- tools/git-submodule/install | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tools/git-submodule/install 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}" $@