#!/bin/sh

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
VERSION=`cat ${DIR}/../io_scene_nif/VERSION`
NAME="blender_nif_plugin"

pushd "${DIR}/.."
git clean -xfd
cp -r pyffi/pyffi io_scene_nif
rm -r io_scene_nif/pyffi/formats/cgf
rm -r io_scene_nif/pyffi/formats/dae
rm -r io_scene_nif/pyffi/formats/psk
rm -r io_scene_nif/pyffi/formats/rockstar
rm -r io_scene_nif/pyffi/formats/tga
rm -r io_scene_nif/pyffi/qskope
zip -9r "${DIR}/${NAME}-${VERSION}.zip" io_scene_nif -x \*/__pycache__/\* -x \*/.git\* -x \*/.project -x \*.dtd
rm -r io_scene_nif/pyffi
popd

#!/bin/sh

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
VERSION=`cat ${DIR}/../io_scene_nif/VERSION`
NAME="blender_nif_plugin"

pushd "${DIR}/.."
git clean -xfd
cp -r pyffi/pyffi io_scene_nif
rm -r io_scene_nif/pyffi/formats/cgf
rm -r io_scene_nif/pyffi/formats/dae
rm -r io_scene_nif/pyffi/formats/psk
rm -r io_scene_nif/pyffi/formats/rockstar
rm -r io_scene_nif/pyffi/formats/tga
rm -r io_scene_nif/pyffi/qskope
cp AUTHORS.rst io_scene_nif
cp CHANGELOG.rst io_scene_nif
cp LICENSE.rst io_scene_nif
cp README.rst io_scene_nif
zip -9r "${DIR}/${NAME}-${VERSION}.zip" io_scene_nif -x \*/__pycache__/\* -x \*/.git\* -x \*/.project -x \*.dtd
rm -r io_scene_nif/pyffi
popd

Include rst files with zip.
Include rst files with zip.
