#!/usr/bin/env bash # # Simple tool script that pulls an angel-dart/ project into ./packages/. if [ "$#" == "0" ]; then echo "usage: pull_subproject " exit 1 fi set -ex shift for project in $*; do git subtree add --prefix="packages/$project" "https://github.com/angel-dart/$project.git" master done