Skip to content

Instantly share code, notes, and snippets.

@sumimakito
Created February 18, 2016 07:38
Show Gist options
  • Save sumimakito/7ca92ff3ca72819129f9 to your computer and use it in GitHub Desktop.
Save sumimakito/7ca92ff3ca72819129f9 to your computer and use it in GitHub Desktop.
Find and copy other dpi resources located in local Android icons library.
#!/bin/sh
cd ./drawable-xxxhdpi
flist="`ls | xargs echo`"
cd ..
target=`pwd`
cd /Users/makito/android-icons
cd drawable-xxhdpi
cp -rfv ${flist} "${target}/drawable-xxhdpi" | xargs -n 1
cd ../drawable-xhdpi
cp -rfv ${flist} "${target}/drawable-xhdpi" | xargs -n 1
cd ../drawable-hdpi
cp -rfv ${flist} "${target}/drawable-hdpi" | xargs -n 1
cd ../drawable-mdpi
cp -rfv ${flist} "${target}/drawable-mdpi" | xargs -n 1
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment