#! /bin/sh

CB_DEVEL=devel$1
CB_OUTPUT=output$1
CB_DEVEL_RESDIR=../../../${CB_DEVEL}/share/codeblocks/images
CB_OUTPUT_RESDIR=../../../${CB_OUTPUT}/share/codeblocks/images
CB_DEVEL_ZIPDIR=../../../${CB_DEVEL}/share/codeblocks

mkdir -p ${CB_DEVEL_RESDIR}/settings > /dev/null 2> /dev/null
mkdir -p ${CB_OUTPUT_RESDIR}/settings > /dev/null 2> /dev/null
cp ./resources/*.png ${CB_DEVEL_RESDIR}/settings/ > /dev/null 2> /dev/null
cp ./resources/*.png ${CB_OUTPUT_RESDIR}/settings/ > /dev/null 2> /dev/null

zip -j9 ${CB_DEVEL_ZIPDIR}/ThreadSearch.zip manifest.xml
cd resources/
zip -Rq9 ../${CB_DEVEL_ZIPDIR}/ThreadSearch.zip \
    images/16x16/*.png \
    images/20x20/*.png \
    images/24x24/*.png \
    images/28x28/*.png \
    images/32x32/*.png \
    images/40x40/*.png \
    images/48x48/*.png \
    images/56x56/*.png \
    images/64x64/*.png \
    images/svg/*.svg
cd ..

exit 0

