$NetBSD: patch-ag,v 1.1 2009/09/20 03:33:43 minskim Exp $

--- kpsetool.orig	2006-01-17 13:41:51.000000000 -0800
+++ kpsetool
@@ -109,10 +109,10 @@ esac
 case "$action" in
   kpsewhich)
     test $# = 1 || { echo "$progname: missing filename"; echo "$usage"; exit 1; }
-    kpsewhich $flags -format="$format" "$1";;
+    @KPSEWHICH@ $flags -format="$format" "$1";;
   kpsepath)
-    kpsewhich $flags -show-path="$format";;
+    @KPSEWHICH@ $flags -show-path="$format";;
   kpsexpand)
     test $# = 1 || { echo "$progname: missing string"; echo "$usage"; exit 1; }
-    kpsewhich $flags -expand-var="$1";;
+    @KPSEWHICH@ $flags -expand-var="$1";;
 esac
