diff options
Diffstat (limited to 'plugins-scripts/subst.in')
-rw-r--r-- | plugins-scripts/subst.in | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/plugins-scripts/subst.in b/plugins-scripts/subst.in index 49a95ca1..c730b770 100644 --- a/plugins-scripts/subst.in +++ b/plugins-scripts/subst.in | |||
@@ -19,19 +19,6 @@ function which(c,path) { | |||
19 | return c; | 19 | return c; |
20 | } | 20 | } |
21 | 21 | ||
22 | # used to replace "use lib utils.pm" with "use lib @libexecdir" | ||
23 | # | ||
24 | function led() { | ||
25 | led1 = "@libexecdir@"; | ||
26 | led2 = "@exec_prefix@"; | ||
27 | led3 = "@prefix@"; | ||
28 | if ( match(led1, /^\$\{exec_prefix\}/ ) != 0 ) { | ||
29 | return "\"" led3 "/libexec\" " ; | ||
30 | |||
31 | } | ||
32 | return "\"" led1 "\"" ; | ||
33 | } | ||
34 | |||
35 | BEGIN { | 22 | BEGIN { |
36 | split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/); | 23 | split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/); |
37 | 24 | ||
@@ -58,9 +45,6 @@ BEGIN { | |||
58 | sub(c,which(c,path)); | 45 | sub(c,which(c,path)); |
59 | } | 46 | } |
60 | 47 | ||
61 | # add to libexecdir to INC for perl utils.pm | ||
62 | /^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } } | ||
63 | |||
64 | # Trusted path mechanism | 48 | # Trusted path mechanism |
65 | /@trusted_path@/ {sub(/@trusted_path@/,"@with_trusted_path@");} | 49 | /@trusted_path@/ {sub(/@trusted_path@/,"@with_trusted_path@");} |
66 | 50 | ||