mirror of https://github.com/docker/docs.git
vendor.sh can cleanly update vendored dependencies
This commit is contained in:
parent
19dc3b0792
commit
055bbb79c1
|
@ -9,9 +9,14 @@ vendor_dir=${PWD}/vendor
|
||||||
git_clone () {
|
git_clone () {
|
||||||
PKG=$1
|
PKG=$1
|
||||||
REV=$2
|
REV=$2
|
||||||
if [[ ! -d src/$PKG ]]; then
|
(
|
||||||
cd $vendor_dir && git clone http://$PKG src/$PKG && cd src/$PKG && git checkout -f $REV
|
set -e
|
||||||
fi
|
cd $vendor_dir
|
||||||
|
if [[ ! -d src/$PKG ]]; then
|
||||||
|
cd $vendor_dir && git clone http://$PKG src/$PKG
|
||||||
|
fi
|
||||||
|
cd src/$PKG && git checkout -f $REV
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
git_clone github.com/kr/pty 27435c699
|
git_clone github.com/kr/pty 27435c699
|
||||||
|
@ -24,6 +29,11 @@ git_clone github.com/dotcloud/tar/ d06045a6d9
|
||||||
|
|
||||||
# Docker requires code.google.com/p/go.net/websocket
|
# Docker requires code.google.com/p/go.net/websocket
|
||||||
PKG=code.google.com/p/go.net REV=84a4013f96e0
|
PKG=code.google.com/p/go.net REV=84a4013f96e0
|
||||||
if [[ ! -d src/$PKG ]]; then
|
(
|
||||||
cd $vendor_dir && hg clone https://$PKG src/$PKG && cd src/$PKG && hg checkout -r $REV
|
set -e
|
||||||
fi
|
cd $vendor_dir
|
||||||
|
if [[ ! -d src/$PKG ]]; then
|
||||||
|
hg clone https://$PKG src/$PKG
|
||||||
|
fi
|
||||||
|
cd src/$PKG && hg checkout -r $REV
|
||||||
|
)
|
Loading…
Reference in New Issue