Skip to content

Commit

Permalink
chore: Added helper script to make all import statements for a qml fi…
Browse files Browse the repository at this point in the history
…le the same

Closes papyros#304
  • Loading branch information
geiseri authored and iBelieve committed Oct 29, 2015
1 parent 15317f1 commit 7ecc219
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions normalize_imports.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7ecc219

Please sign in to comment.