add restore-import-paths and rewrite-import-paths

This commit is contained in:
Matthias Kadenbach 2017-02-08 18:01:01 -08:00
parent fe1b5c06eb
commit e6163082d7
1 changed files with 11 additions and 1 deletions

View File

@ -59,7 +59,17 @@ deps:
-go test -v -i ./...
.PHONY: build-cli clean test-short test test-with-flags deps html-coverage
restore-import-paths:
find . -name '*.go' -type f -execdir sed -i '' s#\"github.com/$(shell cd .. && basename "$$(pwd)")/migrate#\"github.com/mattes/migrate#g '{}' \;
rewrite-import-paths:
find . -name '*.go' -type f -execdir sed -i '' s#\"github.com/mattes/migrate#\"github.com/$(shell cd .. && basename "$$(pwd)")/migrate#g '{}' \;
.PHONY: build-cli clean test-short test test-with-flags deps html-coverage \
restore-import-paths rewrite-import-paths
SHELL = /bin/bash
RAND = $(shell echo $$RANDOM)