#!/bin/sh

VERSION=1.2

if mkdir temp ; then
  cd temp

  cvs export -P -D now mpiJava

  cd mpiJava
  autoconf ; autoheader

  cd src/Java
  javadoc -d  ../../doc/api mpi
  cd ../..

  cd ..

  tar cvf ../mpiJava-${VERSION}.tar mpiJava

  cd ..
  rm -r temp

  rm -f mpiJava-${VERSION}.tar.gz
  gzip mpiJava-${VERSION}.tar
fi

