mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-27 07:53:40 +00:00
36 lines
676 B
Bash
Executable File
36 lines
676 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -z `which glue` ]] ; then
|
|
echo "You need to install glue."
|
|
echo "http://glue.readthedocs.org/en/latest/installation.html"
|
|
exit 1
|
|
fi
|
|
|
|
MAKIPATH=$1
|
|
|
|
if [[ -z $MAKIPATH ]]; then
|
|
echo "Usage: makesprite PATHTOMAKI"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
dir=$(dirname $0)
|
|
img="$dir/.."
|
|
css="$dir/../../css"
|
|
|
|
cd $dir
|
|
mkdir feature-icons
|
|
|
|
cp $MAKIPATH/renders/*-24.png feature-icons
|
|
for x in feature-icons/*.png; do
|
|
mv $x `echo $x | sed "s/-24//"`
|
|
done
|
|
cp $MAKIPATH/renders/*-{12,18}.png feature-icons
|
|
cp renders/line-presets/* feature-icons
|
|
|
|
|
|
glue --namespace=feature --sprite-namespace= feature-icons --css=$css --img=$img
|
|
|
|
rm feature-icons/*
|
|
rmdir feature-icons
|