add pull_subproject tool
This commit is contained in:
parent
0e03940f81
commit
84025f73e2
1 changed files with 11 additions and 0 deletions
11
tool/pull_subproject
Executable file
11
tool/pull_subproject
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Simple tool script that pulls an angel-dart/<name> project into ./packages/<name>.
|
||||
|
||||
if [ "$1" == "" ]; then
|
||||
echo "usage: pull_subproject <name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -ex
|
||||
git subtree add prefix="./packages/$1" "https://github.com/angel-dart/$1.git" master
|
Loading…
Reference in a new issue