Move third_party code under third_party/src so it can be used in $GOPATH.

This commit is contained in:
Joe Beda
2014-06-13 15:15:38 -07:00
parent a40529b379
commit d230625e1a
127 changed files with 7 additions and 7 deletions

View File

@@ -14,8 +14,8 @@ cd $THIRD_PARTY_DIR
. ./deps.sh
# Create a temp GOPATH root. It must be an absolute path
mkdir -p ../target/go_dep_update
cd ../target/go_dep_update
mkdir -p ../output/go_dep_update
cd ../output/go_dep_update
TMP_GO_ROOT=$PWD
cd -
export GOPATH=${TMP_GO_ROOT}
@@ -50,10 +50,10 @@ for p in $PACKAGES; do
cd -
# Copy the code into the final directory
rsync -a -z -r --exclude '.git/' --exclude '.hg/' $TMP_GO_ROOT/src/$p/ $p
rsync -a -z -r --exclude '.git/' --exclude '.hg/' $TMP_GO_ROOT/src/$p/ src/$p
# Make a nice commit about what everything bumped to
git add $p
git add src/$p
if ! git diff --cached --exit-code > /dev/null 2>&1; then
git commit -m "bump($p): $HEAD"
fi