Skip to content

Instantly share code, notes, and snippets.

@ligi
Created December 9, 2014 14:05
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 ligi/a093131d3e4667ec50ed to your computer and use it in GitHub Desktop.
Save ligi/a093131d3e4667ec50ed to your computer and use it in GitHub Desktop.
import material design icons
#!/usr/bin/env groovy
def material_home="/home/ligi/git/3rd/material-design-icons/"
def cat=args[0]
def elm=args[1]
["xhdpi","mdpi","hdpi","xxhdpi","xxxhdpi"].each() {
"mkdir drawable-$it".execute()
def cmd="cp $material_home$cat/drawable-$it/$elm"+".png drawable-$it"
println cmd
println cmd.execute()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment