summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy-new/xindy-2.4-pre2-PATCHES/patch-27-check-exist
blob: 076326feb72ec05acf17adfb90653fef38c6744d (plain)
1
2
3
4
5
6
7
8
9
10
11
diff -ur -x Makefile.in -x autom4te.cache xindy.orig/user-commands/xindy.in xindy/user-commands/xindy.in
--- xindy.orig/user-commands/xindy.in	2009-12-10 10:57:20.000000000 +0100
+++ xindy/user-commands/xindy.in	2009-12-11 11:13:31.000000000 +0100
@@ -453,6 +453,7 @@
 
 our $raw_index = File::Spec->devnull;
 unless ( $interactive ) {
+    for my $f (@ARGV) { die "$cmd: input file $f does not exist"  unless -f $f }
     $raw_index = create_raw_index();	# processes @ARGV
     my $filter_cmd = '';
     if ( $input_markup eq 'latex' ) {