summaryrefslogtreecommitdiffstats
path: root/web/attachments/144263-patch-plugins-scripts_subst_in
blob: 20f6300c1a1fc730b0014868e0e6329b591000a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$OpenBSD: patch-plugins-scripts_subst_in,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
--- plugins-scripts/subst.in.orig	Mon Jul 18 22:56:08 2005
+++ plugins-scripts/subst.in	Mon Jul 18 22:56:30 2005
@@ -44,10 +44,6 @@ BEGIN {
 /^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");}
 /^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");}
 
-# add to libexecdir to INC for perl utils.pm
-/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } }
-
-
 # Trusted path mechanism (deprecated)
 
 /^[ \t]*\$ENV[ \t]*\{[ \t'"]*PATH[ \t"']*\}[ \t]*=/ {
@@ -67,6 +63,9 @@ BEGIN {
 	c=substr($0,RSTART,RLENGTH);
 	sub(c,which(c,path));
 }
+
+# add to libexecdir to INC for perl utils.pm
+/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } }
 
 {
 	print;