#! /bin/sh # -*- sh -*- # # $Id: renamed.test,v 1.2 2003/03/14 18:13:48 richdawe Exp $ # Copyright (C) 2003 by Richard Dawe # # Check that we can still install a ZIP file, even if it's been renamed. if (test -n "$VERBOSE" -a "$VERBOSE" != "n" ); then set -x fi fail=0 rm -rf $TMPROOT || fail=1 echo >>$LOG || fail=1 date >>$LOG || fail=1 echo >>$LOG || fail=1 echo $PAKKE $PAKKEOPT >>$LOG || fail=1 $PAKKE $PAKKEOPT --root $TMPROOT --initdb >>$LOG 2>&1 || fail=1 $PAKKE $PAKKEOPT --root $TMPROOT --install renamed.zip >>$LOG 2>&1 || fail=1 test -f ${TMPROOT}/contrib/p-3.141/foo || fail=1 if [ "$fail" = "0" ]; then rm -rf $TMPROOT || fail=1 fi exit $fail