#!/bin/sh
# makelib342zip -- zip the library for the course, omitting the customized files
# 
# AUTHOR:	Gary T. Leavens

[ -n "$echo" ] && set -x

USAGE='Usage: '"$0"

if test $# -gt 0
then
    echo "$USAGE" >&2
    exit 2
fi

PUB=$HOME/classes/cs342
cd $PUB

LIBZIPFILE=$HOME/temp/lib342.zip
ZIP=zip

rm -f $LIBZIPFILE
cd lib
find . -type f -name '*~' -exec rm -f '{}' ';'
cd ..

# make the zip file
$ZIP -r -9 $LIBZIPFILE lib

# remove the user-specific files so unzipping this file doesn't overwrite them
$ZIP -d $LIBZIPFILE \*/localize.scm\* \*/me.scm \*/junk
