summaryrefslogtreecommitdiff
path: root/Build/source/utils/psutils/psutils-1.17-PATCHES/patch-08-non-free
blob: 1ca6840037a2c40b32d10f6a02ab012df4408832 (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
25
diff -ur psutils-1.17.orig/includeres.pl psutils-1.17/includeres.pl
--- psutils-1.17.orig/includeres.pl	2006-01-17 22:16:42.000000000 +0100
+++ psutils-1.17/includeres.pl	2010-12-20 20:15:37.000000000 +0100
@@ -4,11 +4,6 @@
 # Copyright (C) Angus J. C. Duggan 1991-1995
 # See file LICENSE for details.
 
-use File::Basename;
-
-$predir = `kpsewhich -progname=dvips -format="other text files" md71_0.ps`;
-$inc=`dirname $predir`;
-
 $prog = ($0 =~ s=.*/==);
 
 %extn = ("font", ".pfa", "file", ".ps", "procset", ".ps", # resource extns
@@ -33,8 +28,7 @@
       local($comment, @res) = split(/\s+/);
       local($type) = defined($type{$comment}) ? $type{$comment} : shift(@res);
       local($name) = &filename(@res);
-      if (open(RES, $name) || open(RES, "$name$extn{$type}") ||
-	  open(RES, "$inc/$name") || open(RES, "$inc/$name$extn{$type}")) {
+      if (open(RES, $name) || open(RES, "$name$extn{$type}")) {
 	 while (<RES>) {
 	    print $_;
 	 }