if [ "$1" != 032 -a "$1" != 332 ]; then
	echo "usage: $0 032|332" 
	exit 1
fi
PROC=$1
while :; do
	echo "Are you ready to change the necessary"
	echo "files for 32$PROC standalone builds? [y/n]: \c"
	ANS=`line | tr '[a-z]' '[A-Z]'`
	case $ANS in
		Y|N)
			break;;
		*)
			echo "\n\007Invalid response."
			sleep 1;;
	esac
done
FILES="/lib/crt2.o /usr/lib/ld.file /usr/lib/lib2.a /usr/lib/lib2A.a"
for i in $FILES; do
	if [ -f $FILES ]; then
		echo "===== copying ${i}.$PROC to $i"
		cp ${i}.$PROC $i
		if [ $? != 0 ]; then
			echo "\007Bad copy - aborting"
		fi
	else
		echo "\007${i}.$PROC not found - aborting."
		exit 1
	fi
done
if [ $PROC = 032 ]; then
	rm /bin/ns32332
	ln /bin/false /bin/ns32332
	echo "Reminder: /bin/ns32332 linked with /bin/false"
else
	rm /bin/ns32332
	ln /bin/true /bin/ns32332
	echo "Reminder: /bin/ns32${PROC} linked with /bin/true"
fi
