/
driver3.2@242/autoconf/
driver3.2@242/doc/LPC/
driver3.2@242/hosts/
driver3.2@242/hosts/amiga/NetIncl/
driver3.2@242/hosts/amiga/NetIncl/netinet/
driver3.2@242/hosts/amiga/NetIncl/sys/
driver3.2@242/hosts/atari/
driver3.2@242/hosts/fcrypt/
driver3.2@242/mudlib/
driver3.2@242/mudlib/sys/
driver3.2@242/util/
driver3.2@242/util/indent/hosts/next/
driver3.2@242/util/make_docs/
#include <stdio.h>

#if defined(AMIGA)
#include "hosts/amiga/ixfile.h"
#endif

extern char *strrchr();
extern int system();	/* Could be char* for sprintf, but... */

int
indent_program(name)
char *name;
{
    char buf[1000];
    char *p;

    p = strrchr(name, '/');
    if (!p)
	p = name;
    else
	p++;
#ifndef MSDOS
    (void) sprintf(buf, "%s/indent '%s' -lpc && rm '%s'.BAK", BINDIR, name, p);
    return (system(buf) == 0);
#else
    {
	int ec;

	(void) sprintf(buf, "indent %s -lpc", name);
	ec = system(buf);
	unlink(p);
	return(ec == 0);
    }
#endif
}