Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/indent

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

rm -f config.h
rm -rf ChangeLog-1990 Makefile.in bootstrap doc
rm -rf ABOUT-NLS ChangeLog-1998 NEWS config
rm -rf intl po AUTHORS ChangeLog-2001 README
rm -rf config.h.in m4 regression INSTALL
rm -rf aclocal configure  ChangeLog Makefile.am
rm -rf aclocal.m4 configure.ac miscel
rm -f indent-cc.gperf config.h.vc++ config.h.vms
rm -rf indent.dsp indent.gperf


test -d man && cp man/indent.1 . && rm -rf man
test -d src && mv src/* . && rm -rf src

# This is a bug:
#	FILE *output;
#  is static in the output.c and extern in the indent.h
#
sed 's/^static[ 	]+FILE[ 	]*\*[ 	]*output/FILE *output/' output.c > _output.c

# gperf.c and gperf-cc.c are #included by lexi.c

mkmk -A -xgperf.c -xgperf-cc.c -xoutput.c \
	-D_BSD_EXTENSION  '-DLOCALEDIR=""' \
	-B -I. -o indent > mkfile


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].