Licensing: Update version in file header comments
[adns] / regress / m1test
index 6ecbdb3..17b63c6 100755 (executable)
@@ -10,7 +10,7 @@
 #  
 #  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
-#  the Free Software Foundation; either version 2, or (at your option)
+#  the Free Software Foundation; either version 3, or (at your option)
 #  any later version.
 #  
 #  This program is distributed in the hope that it will be useful,
@@ -24,6 +24,7 @@
 
 set -e
 
+: ${srcdir=.}
 if [ $# -lt 3 ]
 then
        echo >&2 \
@@ -33,7 +34,7 @@ then
        exit 1
 fi
 
-case="case-$1"; shift
+case="$srcdir/case-$1"; shift
 initfile="$1"; shift
 
 hrecord="./adnstest_record"
@@ -64,8 +65,8 @@ fi
 
 queryargs="$*"
 
-initstring="`cat init-$initfile.text`"
-xinitflagsf=$program-xinitflags.text
+initstring="`cat $srcdir/init-$initfile.text`"
+xinitflagsf=$srcdir/$program-xinitflags.text
 if test -f $xinitflagsf
 then
        useinitflags="$initflags $(cat $xinitflagsf)";