3 # This file is part of the Project Athena Zephyr Notification System.
4 # It is one of the source files comprising zwgc, the Zephyr WindowGram
7 # $Id: instantiate,v 1.1 1997/09/14 22:14:07 ghudson Exp $
9 # Copyright (c) 1989,1993 by the Massachusetts Institute of Technology.
10 # For copying and distribution information, see the file
14 if [ "$1" = "" ]; then
15 echo "Usage: generate_instance <srcdir> <type> <name> [<include file>]"
24 if [ "$type" != "stack" ]; then
25 if [ ! -f ${source}/${type}.c ]; then
26 echo "$0: unable to open ${source}/${type}.c"
29 sed "s/TYPE_T/$name/g" ${source}/${type}.c > ${name}_${type}.c
32 if [ "$incfile" != "" ]; then
33 echo "#include \"$incfile\"" > ${name}_${type}.h
35 if [ ! -f ${source}/${type}.h ]; then
36 echo "$0: unable to open ${source}/${type}.h"
39 sed "s/TYPE_T/$name/g" ${source}/${type}.h >> ${name}_${type}.h