From a7bedc5e4f185e458274cec3ab7dac59757a4b26 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 23 Jun 2011 06:42:08 +0000 Subject: [PATCH] Make genlang rewrite english.list if it exists but is older than english.lang git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30056 a1c6a512-1295-4272-9138-f99709370657 --- tools/genlang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/genlang b/tools/genlang index c8ccbd16d7..19b637d237 100755 --- a/tools/genlang +++ b/tools/genlang @@ -237,7 +237,7 @@ sub readenglish { if ($binary and file_is_newer("$binpath/english.list", $english)) { - open(ENG, "<$binpath/english.list") || + open(ENG, "<$binpath/english.list") || die "Error: can't open $binpath/english.list"; while () { my ($user, $id, $value) = split ':', $_; @@ -830,8 +830,8 @@ if($verbose) { } } -if ($binary and !-r "$binpath/english.list") { - open(ENGLIST, ">$binpath/english.list") || +if ($binary and !file_is_newer("$binpath/english.list", $english)) { + open(ENGLIST, ">$binpath/english.list") || die "Failed creating $binpath/english.list"; for my $user (keys %users) { for my $id (keys %{$idmap[$user]}) {