diff --git a/normalize_imports.sh b/normalize_imports.sh new file mode 100755 index 00000000..b3b04009 --- /dev/null +++ b/normalize_imports.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +ROOT=$1 +VERSION=$2 + +for F in $(grep -rl "${ROOT}" .) +do + sed -i -r "s:import ${ROOT} [0-9]+.[0-9]+:import ${ROOT} ${VERSION}:g" $F +done