modify subproject script

This commit is contained in:
Tobe O 2020-02-15 18:18:39 -05:00
parent 84025f73e2
commit 2ddab37c8b

View file

@ -2,10 +2,14 @@
# #
# Simple tool script that pulls an angel-dart/<name> project into ./packages/<name>. # Simple tool script that pulls an angel-dart/<name> project into ./packages/<name>.
if [ "$1" == "" ]; then if [ "$#" == "0" ]; then
echo "usage: pull_subproject <name>" echo "usage: pull_subproject <names...>"
exit 1 exit 1
fi fi
set -ex set -ex
git subtree add prefix="./packages/$1" "https://github.com/angel-dart/$1.git" master shift
for project in "$#"; do
git subtree add prefix="./packages/$project" "https://github.com/angel-dart/$project.git" master
done