diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/hg-subrepo/install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/hg-subrepo/install b/tools/hg-subrepo/install new file mode 100755 index 0000000..3d97dd0 --- /dev/null +++ b/tools/hg-subrepo/install @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e + +CONFIG="install.conf.yaml" +DOTBOT_DIR="dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "${BASEDIR}" + +(cd "${DOTBOT_DIR}" && git submodule update --init --recursive) +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" |