summaryrefslogtreecommitdiff
path: root/devel/autogen/patches/patch-ab
blob: 67586974cd8be4bdc750797eb81410eaab364fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.3 2011/07/08 11:44:02 drochner Exp $

--- autoopts/mk-tpl-config.sh.orig	2011-06-06 15:08:10.000000000 +0000
+++ autoopts/mk-tpl-config.sh
@@ -70,7 +70,7 @@ do
     st=`sed 1q $f`
 
     case "$st" in
-    */perl ) echo '#!' `which perl`
+    */perl ) echo '#!' ${PERL5}
              sed 1d $f
              ;;
 
@@ -87,7 +87,8 @@ done
 while :
 do
     \unalias -a
-    unset -f command cat which
+    unset -f command cat which || true
+    test -x "$POSIX_CAT" && break
     POSIX_CAT=`which cat`
     test -x "$POSIX_CAT" && break
     POSIX_CAT=`