#!/bin/sh

# We need to be matching VTK version actually:
#VERSION=5.6.1
VERSION=`dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-`

rm -rf activiz.net-$VERSION

# c31433cf52778339d29404a7818f4b6c188d5212
git clone git://public.kitware.com/activizdotnet.git activiz.net-$VERSION
cd activiz.net-$VERSION
rm -rf .git

# W: activiz.net-examples: windows-thumbnail-database-in-package usr/share/activiz.net/examples/Decimate/textures/Thumbs.db
find . -name Thumbs.db -delete

#PDF file was generated from word document, cant ship that:
rm Documentation/UsersGuide.pdf

cd ..

GZIP="--best --no-name" tar cfz activiz.net_$VERSION.orig.tar.gz activiz.net-$VERSION
