From 0f4bd9a33237ee4a7ad03b283394c9e4ff682426 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Tue, 11 Nov 2014 16:21:07 -0800 Subject: add dev icon burning --- update_icons.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 update_icons.sh (limited to 'update_icons.sh') diff --git a/update_icons.sh b/update_icons.sh new file mode 100755 index 0000000000..7940aacc28 --- /dev/null +++ b/update_icons.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin + +if [[ -z `which iconoblast` ]]; then + echo "Requires https://github.com/mapbox/iconoblast!" + exit 1 +fi + +commit=`git rev-parse --short HEAD` +branch=`git rev-parse --abbrev-ref HEAD` +repo=`git remote show origin | grep 'Fetch URL' | sed -e 's/.*github\.com:mapbox\///' -e 's/\.git$//' -e 's/^mapbox-//'` + +pwd=`pwd` +cd android/java/app/src/main/res +for folder in `find . -type d -name drawable-\* -maxdepth 1` +do + cd ${folder} + cp icon.png icon_burned.png + iconoblast icon_burned.png $commit $branch $repo + cd .. +done +cd ${pwd} -- cgit v1.2.1