modify subproject script
This commit is contained in:
parent
84025f73e2
commit
2ddab37c8b
1 changed files with 7 additions and 3 deletions
|
@ -2,10 +2,14 @@
|
|||
#
|
||||
# Simple tool script that pulls an angel-dart/<name> project into ./packages/<name>.
|
||||
|
||||
if [ "$1" == "" ]; then
|
||||
echo "usage: pull_subproject <name>"
|
||||
if [ "$#" == "0" ]; then
|
||||
echo "usage: pull_subproject <names...>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue