#   The SunOS 5.6 sed *must* have slashes as delimiters. I changed things like
 
#!/bin/sh
#
# Copyright by the Board of Trustees of the University of Illinois.
# All rights reserved.
#
# This file is part of HDF5.  The full HDF5 copyright notice, including
# terms governing use, modification, and redistribution, is contained in
# the files COPYING and Copyright.html.  COPYING can be found at the root
# of the source code distribution tree; Copyright.html can be found at the
# root level of an installed copy of the electronic HDF5 document set and
# is linked from the top-level documents page.  It can also be found at
# http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html.  If you do not have
# access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu.
#
# Make a release of hdf5.  The command-line switches are:
#
#  -d DIR   The name of the directory where the releas(es) should be
#               placed.  By default, the directory is ./releases
#
#  --nocheck    Ignore errors in MANIFEST file.
#          
#  --private    Make a private release with today's date in version information.
#          
# The other command-line options are the names of the programs to use
# for compressing the resulting tar archive (if none are given then
# `tar md5' is assumed):
#
#   tar     -- use tar and don't do any compressing.
#   compress    -- use compress and append `.Z' to the output name.
#   gzip    -- use gzip with `-9' and append `.gz' to the output name.
#   bzip2       -- use bzip2 with `-9' and append `.bz2' to the output name.
#   md5         -- produce a md5 checksum in addition to the archive.
#   doc         -- produce the latest doc tree in addition to the archive.
#
# Examples:
#
#   $ release
#   releases/hdf5-1.0.38.tar
#   releases/hdf5-1.0.38.tar.md5
#
#   $ release gzip
#   releases/hdf5-1.0.38.tar.gz
#
#   $ release -d /tmp tar compress gzip bzip2 md5 doc
#   /tmp/hdf5-1.0.38.tar
#   /tmp/hdf5-1.0.38.tar.Z
#   /tmp/hdf5-1.0.38.tar.gz
#   /tmp/hdf5-1.0.38.tar.bz2
#   /tmp/hdf5-1.0.38.tar.md5
#   /tmp/hdf5-1.0.38_doc.tar