Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
modules=(DriveKitNetworking DriveKitCore DriveKitDBTripAccess DriveKitDBAchievementAccess DriveKitDBVehicleAccess DriveKitDriverData DriveKitTripAnalysis DriveKitDriverAchievement DriveKitVehicle)
for module in ${modules[@]}
find . -type f -not -path '*Pods*' -name "**.swift" -print0 | xargs -0 sed -i '' "s/import ${module}$/import ${module}Module/g"
find . -type f -not -path '*Pods*' -name "**.h" -print0 | xargs -0 sed -i '' "s/import ${module}$/import ${module}Module/g"
find . -type f -not -path '*Pods*' -name "**.m" -print0 | xargs -0 sed -i '' "s/import ${module}$/import ${module}Module/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment