#!/bin/sh
#creation des repertoires
mkdir windows
mkdir windows/libs/
mkdir windows/.config
mkdir windows/sources/
mkdir windows/sources/filmz
mkdir windows/sources/trashyland-commons
#copie des fichiers
cp filmz.jar windows/
cp license.txt windows/
cp installer-files/filmz-icon.ico windows/
cp installer-files/filmz.nsi windows/
cp installer-files/filmz-config.xml windows/.config/
cp installer-files/filmz.jrxml windows/.config/
cp ../commons-libs/xtnd/be.xtnd.commons-0.0.1.jar windows/libs
cp ../commons-libs/xtnd/LICENSE.xtnd-commons.txt windows/libs/
cp ../commons-libs/bouncy/bcpg-jdk15-128.jar windows/libs/
cp ../commons-libs/bouncy/bcprov-jdk15-128.jar windows/libs/
cp ../commons-libs/bouncy/LICENSE.bouncy.txt windows/libs/
cp ../commons-libs/mysql/mysql-connector-java-3.1.12-bin.jar windows/libs/
cp ../commons-libs/mysql/LICENSE.mysql-connector.txt windows/libs/
cp ../commons-libs/jasper/jdt-compiler.jar windows/libs/
cp ../commons-libs/jasper/LICENSE.jdt-compiler.html windows/libs/
cp ../commons-libs/javahelp/jhall.jar windows/libs/
cp ../commons-libs/javahelp/LICENSE.javahelp.html windows/libs/
cp ../commons-libs/JGoodies/looks-1.3.1.jar windows/libs/
cp ../commons-libs/JGoodies/LICENSE.looks.txt windows/libs
#sources filmz
cp -r src/ windows/sources/filmz
tar jcvf windows/sources/filmz-src.tar.bz2 windows/sources/filmz/
rm -rf windows/sources/filmz

#sources trashylands-commons/
cp -r ../xtnd-commons/src/ windows/sources/xtnd-commons/
tar jcvf windows/sources/xtnd-commons-0.0.1-src.tar.bz2 windows/sources/xtnd-commons
rm -rf windows/sources/xtnd-commons
