
VERSION=4.2.0r3-4

rm -rf release
mkdir release
mkdir release/bin
mkdir release/lib
mkdir release/include

cp */*.dll release/bin
cp */*.lib release/lib
cp include/*.h release/include

rm *.bz2

cd release
tar cjvf ../hdf4-${VERSION}.tar.bz2 bin include lib
cd ..
rm -rf release

tar cjvf hdf4-${VERSION}-src.tar.bz2 hdf mfhdf package.sh
