teambrain/init_repo.sh

24 lines
597 B
Bash

#!/bin/bash
echo "installing teambrains dev tools"
pip install mkdocs
pip install mkdocs-material
echo "installing teambrains git submodules"
# https://git-scm.com/book/en/v2/Git-Tools-Submodules
if [ -d "faq2_api" ]; then
git submodule add git@github.com:cogiway/faq2_api.git
fi
if [ -d "faq2_example" ]; then
git submodule add -f git@github.com:cogiway/faq2_example.git
fi
if [ ! hash mkdocs]; then
fi
if [ -d "faq2_model" ]; then
git submodule add -f git@github.com:cogiway/faq2_model.git
fi
git submodule init
git submodule sync
git submodule update
echo "checking requirements"