#
# It is part of adns, which is
# Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
-# Copyright (C) 1999 Tony Finch <dot@dotat.at>
+# Copyright (C) 1999-2000 Tony Finch <dot@dotat.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
if [ $# -lt 3 ]
then
echo >&2 \
-'usage: m1test <name> <initfile> [-<initflags>]
- [=<hrecord-command-args>] <queryargs>'
+'usage: m1test <name> <initfile> [-<initflags>] ["<"]
+ [=<hrecord-command-args>] <queryargs>
+("<" means read input from case-<name>.in)'
exit 1
fi
-*) initflags="$1"; shift
esac
+if test "x$1" = "x<"
+then
+ shift; exec <"$case.in"
+fi
+
case "$1" in
=*) hrecord="`echo \"$1\" | sed -e 's/^=//'`"; shift
esac