#!/bin/rc
# GNU Indent C source formatter porting script

# NB: src/gperf.c and src/gperf-cc.c are #included by src/lexi.c
# Why do people do things like this?

mkmk src man > mkfile

@{
	defs=(-D_BSD_EXTENSION) 
	defs=($defs '-DPACKAGE="indent"')
	defs=($defs '-DLOCALEDIR="/"' '-DVERSION="1"')

	cd src
	touch config.h
	mkmk -x gperf.c -x gperf-cc.c -B -I . $defs -o indent > mkfile
}

@{
	cd man
	mkmk indent.1 > mkfile
}

junk=(ChangeLog-1990 Makefile.in bootstrap doc)
junk=($junk ABOUT-NLS ChangeLog-1998 NEWS config)
junk=($junk intl po AUTHORS ChangeLog-2001 README)
junk=($junk config.h.in m4 regression INSTALL) 
junk=($junk aclocal configure  ChangeLog Makefile.am)
junk=($junk aclocal.m4 configure.ac miscel)

rm -rf $junk

