#!/bin/sh
echo "Create U_PATH and SU_PATH in the working directory before running this."
cd shadow-3.3.1+
echo "Running configure."
PATH=`cat ../SU_PATH`
sh ./configure
echo "Now doing make.  Messages to make.errs"
make >../make.errs 2>&1
echo "Make complete."
echo "Look at make.errs.  If all is okay, su root, cd shadow-3.3.1+,"
echo "make save and make install."
echo "DO NOT EXIT FROM THE ROOT SHELL.  Switch to another tty and try to log"
echo "in and su.  If this succeeds, use the session for long enough to"
echo "be sure there are no serious problems.  Make restore (and confirm"
echo "that this has worked before relinquishing root) only if you have to."
