#!/bin/bash
export TARGET_DIRECTORY=${TARGET_DIRECTORY:-"out"}
smilies=(
	'smiley/default'
	'smiley/alpha'
	'smiley/coinface'
	'smiley/aim'
	'smiley/crtface'
	'smiley/eusasmilies'
	'smiley/jcdragons'
	'smiley/msn'
	'smiley/onion'
	'smiley/phpbbb'
	'smiley/phpbby'
	'smiley/pyong'
	'smiley/ultleob'
	'smiley/ultleog'
	'smiley/ultleor'
	'smiley/ultleow'
	'smiley/ultleoy'
	'smiley/windows98'
	'smiley/xat'
)
frames=(
	'frame/win98.png 24 4 4 5'
	'frame/winxp.png 29 3 3 3'
	'frame/win98.png 23 4 4 4'
	'frame/irix.png 32 8 8 8'
	'frame/gem-amethyst.png 8'
	'frame/gem-diamond.png 8'
	'frame/gem-emerald.png 8'
	'frame/gem-ruby.png 8'
	'frame/gem-sapphire.png 8'
	'frame/ore-bronze.png 8'
	'frame/ore-coloromus.png 8'
	'frame/ore-gold.png 8'
	'frame/ore-silver.png 8'
	'frame/ore-moonstone.png 8'
)
cards=(
	'card/firenevit.gif -'
	'card/worlioblue.png -'
	'card/warpspeed.gif -'
	'card/nyanstars.gif -'
	'card/water.gif -'
	'card/juststeel.png -'
	'card/ranga.png -'
	'card/win3x/arcade.gif #008080 - #008080'
	'card/win3x/argyle.gif #000080 #ffffff #000080'
	'card/win3x/castle.gif #c0c0c0 - #c0c0c0'
	'card/win3x/egypt.gif #808000 - #808080'
	'card/win3x/honey.gif #808000 - #ffff00'
	'card/win3x/redbrick.gif #800000 #ffffff #000000'
	'card/win3x/rivets.gif #008080 - #008080'
	'card/win3x/squares.gif #800080 - $800080'
	'card/win3x/thatch.gif #ffffff - #ffffff'
	'card/win3x/zigzag.gif #008080 #ffffff #008080'
	'card/gridplane/cyberbeige.gif -'
	'card/gridplane/cyberblue.gif -'
	'card/gridplane/cybercyan.gif -'
	'card/gridplane/cybergreen.gif -'
	'card/gridplane/cyberltblue.gif -'
	'card/gridplane/cyberred.gif -'
	'card/gridplane/cyberpurple.gif -'
	'card/gridplane/cyberyellow.gif -'
)

echo "== PACKING SMILIES =="
for smiley in "${smilies[@]}"; do
	sh make-smiley.sh $smiley
done
echo "== PACKING FRAMES =="
for frame in "${frames[@]}"; do
	sh make-frame.sh $frame
done
echo "== PACKING CARDS =="
for card in "${cards[@]}"; do
	sh make-card.sh $card
done