Skip to content

Instantly share code, notes, and snippets.

@arekolek
Created November 22, 2012 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arekolek/4131886 to your computer and use it in GitHub Desktop.
Save arekolek/4131886 to your computer and use it in GitHub Desktop.
Copy Android drawables to your project
##
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#
# 0. You just DO WHAT THE FUCK YOU WANT TO.
#
##
#
# Usage example:
# $ cd PROJECT/res
# $ copydrawables.sh 'btn_check*_holo_light*.*'
#
##
#!/bin/sh
cp $ANDROID_HOME/platforms/android-16/data/res/drawable/$1 drawable/;
for x in l m h xh; do
cp $ANDROID_HOME/platforms/android-16/data/res/drawable-${x}dpi/$1 drawable-${x}dpi/;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment