done migration

This commit is contained in:
2023-08-08 18:45:36 +06:00
parent 4478193d8a
commit 57ebed903f
11 changed files with 18 additions and 58 deletions

View File

@@ -1,7 +1,12 @@
#!/bin/bash
for folder in $(find . -depth -type d -name "main");
do
newFolder="`echo $folder | sed 's/main/androidMain/g'`"
mv $folder "$newFolder"
done
function renameFolders() {
for folder in $(find . -depth -type d -name "$1");
do
sedString="s/$1/$2/g"
newFolder="$(echo $folder | sed $sedString)"
echo $folder "$newFolder"
done
}
renameFolders "androidTest" "androidUnitTest"