* Copyright (c) 1980 The Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
"@(#) Copyright (c) 1980 The Regents of the University of California.\n\
static char sccsid
[] = "@(#)soelim.c 5.2 (Berkeley) %G%";
* soelim - a filter to process n/troff input eliminating .so's
* Author: Bill Joy UCB July 8, 1977
* This program eliminates .so's from a n/troff input stream.
* It can be used to prepare safe input for submission to the
* phototypesetter since the software supporting the operator
* doesn't let him do chdir.
* This is a kludge and the operator should be given the
* This program is more generally useful, it turns out, because
* the program tbl doesn't understand ".so" directives.
(void)process(STDIN_NAME
);
if (!strcmp(file
, STDIN_NAME
)) {
while (c
== ' ' || c
== '\t');
printf(".so %s\n", fname
);