#!/bin/sh
# ptclean -- clean up all potentially compiler-generated files
# from cafe's Templates-instantiation subdirectory, except the
# "Templates.opt", since that one could be user-modified.
#
# Copyright 08/16/96 Sun Microsystems, Inc. All Rights Reserved
#
# "@(#)RELEASE VERSION WorkShop Compilers 4.2 10/15/96"
#
# @(#)ptclean 1.12 96/08/16 SMI
#

currwd=`pwd`

if [ -d $currwd/Templates.DB ] ; then
    cd $currwd/Templates.DB 
    /bin/rm -fr *.o *.s *.promise *.state *.system 
    /bin/rm -fr *.temp *.cdb_link *.lock *.module 
    /bin/rm -fr Module.DB/* 
fi
if [ -d $currwd/CDR ] ; then
    cd $currwd/CDR 
    /bin/rm -fr * 
fi
