#!/bin/bash

current_dir=${PWD##*/}

if [ $current_dir != "pdf-box" ] ; then
    echo "Error: To prepare the new pdf-box.tar.gz file, this"        >&2
    echo "script must be run the directory is itself named 'pdf-box'" >&2
    exit 1
fi

# (Gnu) tar these days can handle zip files, so ...

tar --directory=.. -cvzf pdf-box-java.zip \
    pdf-box/lib \
    pdf-box/perllib \
    pdf-box/build \
    pdf-box/setup.bash \
    pdf-box/setup.bat \
    pdf-box/pdf-box-setup.pl
