setup.sh

1stMud4.5.3/src/config/setup.sh · 583 B

From the archive firstmud-4.5.3.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh

fail()
{
	echo ""
	echo "ERROR: $@"
	echo ""
	echo "Using default Makefile and config file.  Some options may not suite your system!"
	cp -f ./Makefile.fail ../Makefile
	cp -f ./config.h.fail ../h/config.h
	echo > ../.depend
	exit 1
}

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

conf()
{
	./configure $@ || 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 $1 $2 $3 $4 $5 $6 $7 $8 $9

exit

Site Stats

Snippets: 1791
Codebases: 571