Merge "Make update-build-links bashate compliant"

This commit is contained in:
Jenkins 2015-06-08 15:50:11 +00:00 committed by Gerrit Code Review
commit 53de5ba287
1 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,9 @@ REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."
find docker -name Dockerfile | while read dockerfile; do
dir=${dockerfile%/*}
link=$(python -c 'import os,sys; print os.path.relpath(sys.argv[1], sys.argv[2])' \
$PWD/tools/build-docker-image $dir)
ln -sf $link $dir/build
dir=${dockerfile%/*}
link=$(python -c 'import os,sys; print os.path.relpath(sys.argv[1], sys.argv[2])' \
$PWD/tools/build-docker-image $dir)
ln -sf $link $dir/build
done