pull/6/head
Chao Xu 2016-09-27 20:46:04 -07:00
parent 563919c3ec
commit d3bba2cf8d
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ function mvfolder {
# rewrite package
local src_package="${src##*/}"
local dst_package="${dst##*/}"
find "${CLIENT_REPO}" -type f -name "*.go" -print0 | xargs -0 sed -i "s,package ${src_package},package ${dst_package},g"
find "${CLIENT_REPO}/${dst}" -type f -name "*.go" -print0 | xargs -0 sed -i "s,package ${src_package},package ${dst_package},g"
{ grep -Rl "\"${CLIENT_REPO_FROM_SRC}/${src}" "${CLIENT_REPO}" || true ; } | while read -r target ; do
# rewrite imports