grogers@BULLWINKLE.CS.UIUC.EDU (Greg Rogers) (01/18/90)
As soon as I posted my ch program I realized how to make it MUCH faster. Here's a new version of the 'ch' script file. #!/bin/csh -f egrep '^class ' *.ch | sed 's/^.*:class //;s/:/ /;s/{//;s/\[.*\]//;s,/\*.*\*/,,' | runapp chapp Greg Rogers University of Illinois at Urbana-Champaign Department of Computer Science 1304 W. Springfield Ave. Urbana, IL 61801 grogers@cs.uiuc.edu
grogers@BULLWINKLE.CS.UIUC.EDU (Greg Rogers) (01/18/90)
Oops. I was all wrong about my ch script working on the ATK classes. Their .ch files are all full of things like: class subclassname[key1]:superclassname[k2] { My sed script swallowed everything from the first [ to the last ]. If anyone knows how to get around this sort of thing with sed, I'd like to know about it. Greg Rogers University of Illinois at Urbana-Champaign Department of Computer Science 1304 W. Springfield Ave. Urbana, IL 61801 grogers@cs.uiuc.edu
ghoti+@ANDREW.CMU.EDU (Adam Stoller) (01/18/90)
You should probably add the following line to the [top of the] Imakefile for chapp: IHFILES = bintree.ih node.ih cnode.ih chapp.ih darray.ih This makes sure that all the *.[ie]h files are compiled (if need be) before it tries to compile the *.c files. --fish