summaryrefslogtreecommitdiff
path: root/tools/update-build-links
blob: ac6fa53a89862d0513b2d05318ee0a42d4304e50 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

cd $(git rev-parse --show-toplevel)
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
done