Created
January 4, 2016 14:39
-
-
Save lorddarq/cd4dde9f5e8d1d5b4781 to your computer and use it in GitHub Desktop.
This is a shellscript to be used with the Android-Sketch workflow as described in the following medium article: https://medium.com/@lmindler/using-sketch-3-and-a-bit-of-fairy-dust-for-a-better-android-workflow-f667d0048855#.wvtamf346
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ../Desktop/res/; mkdir -p drawable-xxhdpi; mkdir -p drawable-xhdpi; mkdir -p drawable-hdpi; mkdir -p drawable-mdpi | |
for file in $(find . -type f -iname '*-xxhdpi*'); do | |
mv "$file" "drawable-xxhdpi/${file/-xxhdpi/}"; | |
done | |
for file in $(find . -type f -iname '*-xhdpi*'); do | |
mv "$file" "drawable-xhdpi/${file/-xhdpi/}"; | |
done | |
for file in $(find . -type f -iname '*-hdpi*'); do | |
mv "$file" "drawable-hdpi/${file/-hdpi/}"; | |
done | |
for file in $(find . -type f -iname '*-mdpi*'); do | |
mv "$file" "drawable-mdpi/${file/-mdpi/}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment