diff options
author | Yorhel <git@yorhel.nl> | 2009-10-21 10:58:04 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-10-21 10:59:10 +0200 |
commit | 815ed4023dea8c3a4168bc6826a7e9515631dab8 (patch) | |
tree | 07ac2c48bfc9b5ba9409404b7e34182f8f190ee8 /util | |
parent | f1c2df3d3e8761f6095ad7612a3d7b87354a7a44 (diff) |
JS: Improved dependency checking when determining whether to run jsgen.pl
Diffstat (limited to 'util')
-rwxr-xr-x | util/vndb.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index f3c3036c..4752c274 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -123,6 +123,12 @@ sub checkjs { my $lastmod = [stat $script]->[9]; system "$ROOT/util/jsgen.pl" if (!-e $script && -x "$ROOT/static/f") - || (-e $script && -w $script && $lastmod < [stat "$ROOT/data/script.js"]->[9] || $lastmod < [stat "$ROOT/data/lang.txt"]->[9]); + || (-e $script && -w $script && ( + $lastmod < [stat "$ROOT/data/script.js"]->[9] + || $lastmod < [stat "$ROOT/data/lang.txt"]->[9] + || (-e "$ROOT/data/config.pl" && $lastmod < [stat "$ROOT/data/config.pl"]->[9]) + || $lastmod < [stat "$ROOT/data/global.pl"]->[9] + || $lastmod < [stat "$ROOT/util/jsgen.pl"]->[9] + )); } |