#!/usr/bin/env bash

set -x

for c in `find ./ -name "*.go" -print`; do sed -i 's,a.yandex-team.ru/load/projects/pandora,github.com/yandex/pandora,' $c ; done
sed -i 's,a.yandex-team.ru/load/projects/pandora,github.com/yandex/pandora,' go.mod

curl 'https://proxy.sandbox.yandex-team.ru/2197683746' > ./goimports
chmod +x ./goimports
find ./ -name "*.go" -exec ./goimports -w {} \;
rm -f ./goimports

find ./ -name ya.make -exec rm -rf {} \;
find ./ -name gotest -type d -prune -exec rm -rf {} \;
rm -f oss_postprocess.sh
