#! /bin/sh

## Simple shell script to create a tarfile for the OBVIUS
## distribution.  Contents of the tarfile are determined by the lines
## in the file TARFILE-CONTENTS which is in the main OBVIUS source
## directory.

## BEFORE MAKING THE TARFILE:
## - Check that *obvius-version* is correct (in lucid-defsys).
## - Put patches up for ftp (for people who don't want to get the
##   whole tarfile).  Set *starting-patch-file* so as not to load them.
## - run "make" in the doc directory
## - Make a tags file (run "etags *.lisp" in the lisp-source directory).
## - Delete all backup files in lisp-source, c-source, emacs-source, doc.
## - Move old source into <obv>/old directory

## Tarfile name is first arg.
tarfile=${1-"obv-2.2.tar"}

echo "Creating tarfile $tarfile"
echo "Current directory is `pwd`"
echo "You have 8 seconds to abort (type C-c) ..."

sleep 8  ## In case user wants to abort..

## Create tarfile, including linked files, suppressing ownership
tar cvhof $tarfile -I TARFILE-CONTENTS

echo "Compressing $tarfile ..."
compress $tarfile
echo "Done compressing $tarfile"

