about summary refs log tree commit diff
path: root/src/migrate.sh
blob: dcc29f6259f3de84907f01656a4c1a58de71e2c8 (plain)
1
2
3
4
5
6
7
8
9
files=( $(find . -name '*.go' -not -path './vendor/*') )

for rule in \
    's|"github.com/docker/docker/api|"docker.io/go-docker/api|' \
    's|^([[:space:]]+)"github.com/docker/docker/client|\1client "docker.io/go-docker|' \
    's|"github.com/docker/docker/client|"docker.io/go-docker|' \
; do
    sed -i -E "$rule" ${files[*]}
done