#!/bin/ksh
fullname=$1
shift
package=`expr $fullname : '\(.*\)\.[^.]*$'`
if [ x$package = x ]
then
class=$fullname
else
class=`expr $fullname : '.*\.\([^.]*\)$'`
fi
cat <<END
// This file automagically generated by the build; do not edit.
END
if [ x$package != x ]
then
cat <<END
package $package;
END
fi
cat <<END
/**
* Artifact of the build process. This class is automagically
* generated by the jam build; it depends on all of the classes in
* the package so that <code>javac -depend</code> can find all of the
* classes. This allows <code>javac</code> to be called only once
* per package, and simplifies the dependancy analysis.
*/
public class $class
{
END
while [ $# -gt 0 ]
do
echo " Class c$# = $1.class;"
shift
done
echo "}"