From efe7f9c4e645a95608f05dcdc3680802545523bd Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Tue, 10 Jan 2006 22:10:22 +0000 Subject: [PATCH] ignore dangling symlinks when building po/POTFILES.in * make-gnucash-potfiles.in: ignore dangling symlinks when building po/POTFILES.in git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12312 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 5 +++++ make-gnucash-potfiles.in | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7087d4e0b9..d0c8fc92cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-10 Derek Atkins + + * make-gnucash-potfiles.in: ignore dangling symlinks when + building po/POTFILES.in + 2006-01-10 Christian Stimming * accounts/nb/*, configure.in: Add account templates for Norwegian diff --git a/make-gnucash-potfiles.in b/make-gnucash-potfiles.in index d627d207f6..1cf8b815a9 100644 --- a/make-gnucash-potfiles.in +++ b/make-gnucash-potfiles.in @@ -70,6 +70,9 @@ foreach my $file (@possible_files) { } next if $ignores{$path . $name}; + # Ignore unreadable files, e.g. dangling symlinks + next unless (-r $path . $name); + print $path . $name . "\n"; }