Add maki sprite

This commit is contained in:
Ansis Brammanis
2013-02-19 11:27:48 -05:00
parent 88949d6624
commit 2c339c3ceb
3 changed files with 529 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/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/../img"
css="$dir/../css"
glue --namespace=maki --sprite-namespace= $1/renders --css=$css --img=$img
mv $css/renders.css $css/maki.css
mv $img/renders.png $img/maki.png
sed -i 's/renders/maki/' $css/maki.css