setup.sh

1stMud/src/config/setup.sh · 528 B

From the archive 1stmud-4.5.2.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh

arglist=$1 $2 $3 $4 $5 $6 $7 $8 $9

fail()
{
	echo ""
	echo "ERROR: $@";
	# Use a makefile with no autoconf in it.
	mv -f Makefile.in Makefile.bak
	mv -f Makefile.fail Makefile.in
	conf
	exit 1;
}

error()
{
	echo ""
	echo "ERROR: $@"
	exit 1;
}

conf()
{
	./configure $1 || error "./configure script failed!!"

	echo ""
	echo "Setup complete."
	echo ""
}

autoheader || fail "autoheader failed.  You need to upgrade autoconf."
autoconf || fail "autoconf failed.  You need to upgrade autoconf."

conf $arglist

exit

Site Stats

Snippets: 1791
Codebases: 571