echo exiting
exit
echo test

#// mkdir sound sound/cdtracks
#// //add to mapinfo://cdtrack asongyouaddedinsoundcdtracksminustheextension
#//made these to make easier --mikee (opensource script gpl)
mkdir maps textures scripts
cd textures


unzip *.zip
mv *.obj ../maps
mv *.mtl ../maps

#mogrify -format tga -auto-orient *.png
#find . -name "*.tga" -exec convert "{}" -alpha off "{}" \;
# rm *.png
mogrify -format tga -auto-orient *.png
#rm *.png

mkdir alpha
cp *plant*.tga alpha/
cp *leav*.tga alpha/
cp *leaf*.tga alpha/
cp *deco*.tga alpha/
cp *grate*.tga alpha/
cp *beams*.tga alpha/
cp *vines*.tga alpha/
cp *circle_fud*.tga alpha/
cp *glass*.tga alpha/
cp *floater*.tga alpha/
cp *tree*.tga alpha/
cp *bushes*.tga alpha/
cp *screen*.tga alpha/
cp *decals*.tga alpha/
cp *_mesh_*.tga alpha/
cp *_canopy_*.tga alpha/
cp *alpha*.tga alpha/

find . -maxdepth 1 -name "*.tga" -exec convert "{}" -alpha off "{}" \;

mv ./alpha/* ./

#halo4
//#rename s/_diffuse// *
//#rename s/_diff// *
rename s/_normal/_diff_norm/ *.tga

#halo3
//# rename s/_zbump/_dif_norm/ *.tga
//# rename s/_bump./_norm./ *.tga


#maps:
#some huge halo4 make a scale
//# rename s/scale1024/scale256/ *
