#! /bin/bash 

# Must be executed in the NEUROMAT-REPO directory.
# Does checkout of a subproject ${sub} of "neuromat" project on GitHub into
# a new directory, which will be named ".../NEUROMAT-REPO/${sub}".

sub="$1"; shift; # Name of subproject

check_dir_tail.sh "NEUROMAT-REPO"

repo="https://github.com/neuromat/${sub}"
git clone "${repo}"

