build.sh at [2c67b3f70f]

File build/build.sh artifact a5d6721e9d part of check-in 2c67b3f70f


#! /bin/sh

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

./autogen.sh || exit 1

if [ ! -x configure ]; then
	exit 1
fi

rm -rf autom4te.cache vpn/nrlssc/vpngui/build/

for basefile in install-sh config.sub config.guess; do
	for path in /usr/share/automake-*; do
		file="${path}/${basefile}"
		if [ -f "${file}" ]; then
			cp "${file}" .
			chmod 755 "./${basefile}"

			break
		fi
	done
done