4bd953d9e9
Submitted by: Blaz Zupan <blaz@si.FreeBSD.org> Repocopied by: joe
37 lines
820 B
Plaintext
37 lines
820 B
Plaintext
--- plugins-scripts/subst.in.orig Thu Jun 6 06:16:56 2002
|
|
+++ plugins-scripts/subst.in Sun Jul 14 13:38:22 2002
|
|
@@ -37,6 +37,16 @@
|
|
|
|
}
|
|
|
|
+# Specific programs
|
|
+
|
|
+#
|
|
+/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// {
|
|
+ match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/);
|
|
+ start=RSTART+RLENGTH;
|
|
+ c=substr($0,RSTART,RLENGTH);
|
|
+ sub(c,which(c,path));
|
|
+}
|
|
+
|
|
# scripting language (first line)
|
|
|
|
/^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");}
|
|
@@ -56,16 +66,6 @@
|
|
|
|
/^[\t ]*(export[\t ]*)?PATH[\t ]*=['"]+.+["']$/ {
|
|
sub(/\=.*$/,"='@trusted_path@' # autoconf-derived");
|
|
-}
|
|
-
|
|
-# Specific programs
|
|
-
|
|
-#
|
|
-/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// {
|
|
- match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/);
|
|
- start=RSTART+RLENGTH;
|
|
- c=substr($0,RSTART,RLENGTH);
|
|
- sub(c,which(c,path));
|
|
}
|
|
|
|
{
|