/
driver3.2@304/autoconf/
driver3.2@304/doc/LPC/
driver3.2@304/hosts/
driver3.2@304/hosts/amiga/NetIncl/
driver3.2@304/hosts/amiga/NetIncl/netinet/
driver3.2@304/hosts/amiga/NetIncl/sys/
driver3.2@304/hosts/fcrypt/
driver3.2@304/hosts/os2/
driver3.2@304/mudlib/sys/
driver3.2@304/util/
driver3.2@304/util/indent/hosts/next/
driver3.2@304/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;

    if (strchr(name, '\''))
	return 0;
    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
}