pre.sh at [53cdd8c9a6]

File build/pre.sh artifact 24cc7de513 part of check-in 53cdd8c9a6


#! /bin/bash

./kitcreator distclean

KITSHROOTDIR="$(ls -1d kitsh/buildsrc/kitsh-*/)"
export KITSHROOTDIR

(
	cd "${KITSHROOTDIR}" || exit 1

	autoconf; autoheader
	rm -rf autom4te.cache
	rm -f *~

	./configure || exit 1
	make mk4tcl.tcl.h

	make distclean
) || exit 1

find . -name '.*.sw?' -type f | xargs rm -f