#! /bin/sh# pdemo-inst.test - try installing from the ../pdemo subdirectory# Test script header.need_prefix=yesif test -z "$srcdir"; thensrcdir=`echo "$0" | sed 's%/[^/]*$%%'`test "$srcdir" = "$0" && srcdir=.test "${VERBOSE+set}" != "set" && VERBOSE=yesfi. $srcdir/defs || exit 1# Check that things are built.if test -f ../pdemo/hell$EXEEXT; then :elseecho "You must run pdemo-make.test before $0" 1>&2exit 77fi# Change to our build directory.cd ../pdemo || exit 1echo "= Running $make install in ../pdemo"$make install || exit 1echo "= Executing installed programs"status=0if $prefix/bin/hell_static | grep 'Welcome to GNU Hell'; then :elseecho "$0: cannot execute $prefix/bin/hell_static" 1>&2status=1fiif $prefix/bin/hell | grep 'Welcome to GNU Hell'; then :elseecho "$0: cannot execute $prefix/bin/hell" 1>&2# Simple check to see if they are superuser.if test -w /; then :elseecho "You may need to run $0 as the superuser."fistatus=1fiif $prefix/bin/helldl | $EGREP -e '(Welcome to .*GNU Hell|unsupported)'; then :elseecho "$0: cannot execute $prefix/bin/helldl" 1>&2# Simple check to see if they are superuser.if test -w /; then :elseecho "You may need to run $0 as the superuser."fistatus=1fiexit $status