cd "$dx_testdir"
}
+dx_pam_header()
+{
+ awk 'BEGIN { ret=1 }
+ NR==1 { if (!/^P7$/) exit 1 }
+ /^P7$/,/^ENDHDR$/ { ret=0; if ($2) print $1"="$2 }
+ /^ENDHDR$/ { print $1"="NR+1; exit }
+ END { exit ret }' ${1+"$@"}
+}
+
# Variables to run the LBX tools. Default to the build tree, but can also be
# set explicitly to test installed tools.
: "${LBXTOOL=$builddir/lbxtool$EXEEXT}"