Make update-build-links bashate compliant

Change-Id: I51841f90a1a291f6bc82372e048461afbb0b482b
Partially-Implements: blueprint bashate-gate
This commit is contained in:
Steven Dake 2015-05-28 08:34:02 -07:00
parent 83b2e10409
commit 89edade6e5

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