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