#!/usr/bin/env bash
#
# Wrapper for git to handle more subdirs at the same time
# this wrapper redirect to the one in the bootstrap repo, that will do the actual work
#

BASE_DIR=$(dirname $0)
cd ${BASE_DIR}/..
BOOTSTRAPDIR="$(pwd)/bootstrap"

if [ ! -e ${BOOTSTRAPDIR} ]; then
    ${BASE_DIR?}/migrate-rawbuild-to-bootstrap || exit 1;
fi

if [ -d ${BOOTSTRAPDIR} ]; then
    ${BOOTSTRAPDIR}/g "$@"
fi

# vi:set shiftwidth=4 expandtab:
