From 19d0e4732041ac991b74fa7de68446d60a97c745 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 29 Mar 2007 09:23:47 +0000 Subject: [PATCH] * Print a warning if files cannot be found. svn path=/nixpkgs/trunk/; revision=8476 --- pkgs/misc/tex/nix/find-includes.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/misc/tex/nix/find-includes.pl b/pkgs/misc/tex/nix/find-includes.pl index e4424a3ecd6..649b16dc35f 100644 --- a/pkgs/misc/tex/nix/find-includes.pl +++ b/pkgs/misc/tex/nix/find-includes.pl @@ -28,6 +28,11 @@ while (scalar @workset > 0) { $doneset{$fn} = 1; + if (!-e "$fn") { + print STDERR "cannot access `$fn': $!\n" if !$!{ENOENT}; + next; + } + next unless -e "$fn";