Last active
June 22, 2021 19:32
-
-
Save felipefpx/0407352bba116d1d21e24ce52b9615c6 to your computer and use it in GitHub Desktop.
Material Design Icons Script for Mac
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
iconDir=~/Downloads | |
targetDir=~/Desktop | |
mkdir -p $targetDir/res/drawable-mdpi/ | |
mkdir -p $targetDir/res/drawable-hdpi/ | |
mkdir -p $targetDir/res/drawable-xhdpi/ | |
mkdir -p $targetDir/res/drawable-xxhdpi/ | |
mkdir -p $targetDir/res/drawable-xxxhdpi/ | |
find $iconDir/ -type d -name "drawable-mdpi" -exec find {} -type f -name "*.png" \; | xargs -I '{}' mv {} $targetDir/res/drawable-mdpi/ | |
find $iconDir/ -type d -name "drawable-hdpi" -exec find {} -type f -name "*.png" \; | xargs -I '{}' mv {} $targetDir/res/drawable-hdpi/ | |
find $iconDir/ -type d -name "drawable-xhdpi" -exec find {} -type f -name "*.png" \; | xargs -I '{}' mv {} $targetDir/res/drawable-xhdpi/ | |
find $iconDir/ -type d -name "drawable-xxhdpi" -exec find {} -type f -name "*.png" \; | xargs -I '{}' mv {} $targetDir/res/drawable-xxhdpi/ | |
find $iconDir/ -type d -name "drawable-xxxhdpi" -exec find {} -type f -name "*.png" \; | xargs -I '{}' mv {} $targetDir/res/drawable-xxxhdpi/ | |
find $iconDir -type d -name "ic_*" -print0 | xargs -0 /bin/rm -rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment