#!/bin/sh
#
# File: plzoo
# Usage: plzoo
# 
# Builds zoo archive of plplot files for distribution.
# No binary or CVS files should be included.

# Build archive from parent directory.  It must also be unpacked from there.

pldir="`basename $PWD`"
zoofile=${pldir}
cd ..

# top level text files & scripts

zoo a ${zoofile} ${pldir}/README
zoo a ${zoofile} ${pldir}/README.1st
zoo a ${zoofile} ${pldir}/COPYRIGHTS
zoo a ${zoofile} ${pldir}/Changes.log
zoo a ${zoofile} ${pldir}/ToDo
zoo a ${zoofile} ${pldir}/pltar*
zoo a ${zoofile} ${pldir}/plzoo*
zoo a ${zoofile} ${pldir}/plzip*

# Make sure zoo creates these subdirectories to make installation easier.

zoo a ${zoofile} ${pldir}/tmp/.dummy

# Font files

zoo a ${zoofile} ${pldir}/lib/*.fnt

# Subdirectories

find ${pldir}/doc      ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/drivers  ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/examples ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/fonts    ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/include  ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/new      ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/utils    ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/src      ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
find ${pldir}/sys      ! -path \*CVS\* -only -type f | zoo aI ${zoofile}
