#!/bin/sh

DIR=/u/src/openserver/net
ODIR=/u/src/openserver/Handoffs
PDIR=mozilla-1.6.1Ba
OUT=$ODIR/$PDIR.cpio.Z

cd $DIR

rm -f $OUT
ADIRS=
for i in cntl etc var
do
    [ -d $PDIR/$i ] && ADIRS="$PDIR/$i $ADIRS"
done

/bin/find $PDIR/cdmt.config $PDIR/input $PDIR/usr $ADIRS \
          -depth -print | /bin/cpio -oc | /usr/bin/compress -H > $OUT
