Files
MapLibreParticleLab/platform/android/MapboxGLAndroidSDKTestApp/update_icons.sh
Jason Wray 36076a1d6d [android] Move unused icon burning script to Android folder (#6310)
Trying the new Squash and Merge Green Button functionality.  I'm told that FF is now enabled, but haven't seen firsthand until now.
2016-09-16 10:34:06 -07:00

22 lines
538 B
Bash
Executable File

#!/bin/bash
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 src/main/res
for folder in `find . -maxdepth 1 -type d -name drawable-\*`
do
cd ${folder}
cp icon.png icon_burned.png
iconoblast icon_burned.png $commit $branch $repo
cd ..
done
cd ${pwd}