#!/bin/sh
#
#                 mkpkg
#              version 1.0
# 
# Author : A. Davison
# Copyright (C) 1994, Esonque Systems
#
#
# This file may be distributed freely AS LONG AS this copyright message
# remains in the distributed/derivative file.
#

prog=$1;
cmdline=$*;
shift;



for a in $* ; do
	b=$c
	c=$a
	echo >> /dev/null
done

# If the destination is a directory, make sure that the filename goes into the
# package description line too.
if [ -d $a ]; then
	a=$a/`basename $b`
fi

echo $a | sed 's/^.//' >> /tmp/pkg.$PACKAGE_NAME
$prog $*
