Skip to content

Commit

Permalink
Updated script
Browse files Browse the repository at this point in the history
  • Loading branch information
YauhenDaresay committed Oct 16, 2024
1 parent 447f403 commit e67b8d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/rename_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ find . -type f -exec perl -pi -e "s/co\.daresay\.kmmtemplate/$new_package/g" {}
new_path=$(echo "$1" | tr "." "/")

# Define arrays for paths
paths=("composeApp/src/androidMain/kotlin/co/daresay/kmmtemplate" "shared/src/androidMain/kotlin/co/daresay/kmmtemplate" "shared/src/commonMain/kotlin/co/daresay/kmmtemplate" "shared/src/iosMain/kotlin/co/daresay/kmmtemplate" "shared/src/commonMain/sqldelight/co/daresay/kmmtemplate")
new_paths=("composeApp/src/androidMain/kotlin/$new_path" "shared/src/androidMain/kotlin/$new_path" "shared/src/commonMain/kotlin/$new_path" "shared/src/iosMain/kotlin/$new_path" "shared/src/commonMain/sqldelight/$new_path")
delete_paths=("composeApp/src/androidMain/kotlin/co" "shared/src/androidMain/kotlin/co" "shared/src/commonMain/kotlin/co" "shared/src/iosMain/kotlin/co" "shared/src/commonMain/sqldelight/co")
paths=("composeApp/src/androidMain/kotlin/co/daresay/kmmtemplate" "shared/src/androidMain/kotlin/co/daresay/kmmtemplate" "shared/src/commonMain/kotlin/co/daresay/kmmtemplate" "shared/src/iosMain/kotlin/co/daresay/kmmtemplate" "shared/src/commonMain/sqldelight/co/daresay/kmmtemplate" "composeApp/src/commonMain/kotlin/co/daresay/kmmtemplate" "composeApp/src/iosMain/kotlin/co/daresay/kmmtemplate" "composeApp/src/commonMain/sqldelight/co/daresay/kmmtemplate")
new_paths=("composeApp/src/androidMain/kotlin/$new_path" "shared/src/androidMain/kotlin/$new_path" "shared/src/commonMain/kotlin/$new_path" "shared/src/iosMain/kotlin/$new_path" "shared/src/commonMain/sqldelight/$new_path" "composeApp/src/commonMain/kotlin/co" "composeApp/src/iosMain/kotlin/$new_path" "composeApp/src/commonMain/sqldelight/$new_path")
delete_paths=("composeApp/src/androidMain/kotlin/co" "shared/src/androidMain/kotlin/co" "shared/src/commonMain/kotlin/co" "shared/src/iosMain/kotlin/co" "shared/src/commonMain/sqldelight/co" "composeApp/src/commonMain/kotlin/$new_path" "composeApp/src/iosMain/kotlin/co" "composeApp/src/commonMain/sqldelight/co")

# Loop through the paths and perform operations
for i in "${!paths[@]}"; do
Expand Down

0 comments on commit e67b8d6

Please sign in to comment.