#!/bin/sh
TP="/usr/local/bin/TexturePacker"
#! cd ${PROJECT_DIR}/${PROJECT}
#cd /Users/dreamjelly1/Downloads/newGame/MC
function traversal()
{
for file in `ls`
do
if [ -f "$file" ]; then
if [ ${file##*.} == "png" ]; then
path="`pwd`""/""$file";
png=".png";
pvr=".pvr.ccz"
prepath=${path%.*};
pngpath=${prepath}${png};
pvrpath=${prepath}${pvr};
echo "$pngpath";
${TP} "$pngpath" \
--format cocos2d \
--texture-format pvr2ccz \ <
TP="/usr/local/bin/TexturePacker"
#! cd ${PROJECT_DIR}/${PROJECT}
#cd /Users/dreamjelly1/Downloads/newGame/MC
function traversal()
{
for file in `ls`
do
if [ -f "$file" ]; then
if [ ${file##*.} == "png" ]; then
path="`pwd`""/""$file";
png=".png";
pvr=".pvr.ccz"
prepath=${path%.*};
pngpath=${prepath}${png};
pvrpath=${prepath}${pvr};
echo "$pngpath";
${TP} "$pngpath" \
--format cocos2d \
--texture-format pvr2ccz \ <