$NetBSD$

--- gnats/mkcat.sh.orig	2001-07-30 20:42:04.000000000 +0200
+++ gnats/mkcat.sh
@@ -36,7 +36,8 @@ while [ $# -gt 0 ]; do
 done
 
 
-GNATS_DB_DIR="`query-pr --print-directory-for-database`"
+QUERY_PR="xBINDIRx/query-pr"
+GNATS_DB_DIR="`$QUERY_PR --print-directory-for-database`"
 
 # verify gnats root
 if [ ! -d ${GNATS_DB_DIR} ] ; then
@@ -44,7 +45,7 @@ if [ ! -d ${GNATS_DB_DIR} ] ; then
    exit 1
 fi
 
-query-pr --list-categories | awk -F: '{print $1}' | while read i
+$QUERY_PR --list-categories | awk -F: '{print $1}' | while read i
 do
     if test -d "$GNATS_DB_DIR/$i"; then
 	true
