diff options
author | Yorhel <git@yorhel.nl> | 2010-11-24 09:53:18 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-24 09:53:18 +0100 |
commit | 7004c8352cda3c81e547aabc037fd9ec7f03172c (patch) | |
tree | 03dfb5dc752c4121b797586bb1381af1cfcc4810 /lib | |
parent | b1020c34d67837194554388812a71aa5bf7db7e0 (diff) |
vndb.pl: Use the Makefile to auto-update static files
Rather than trying to figure out what to update in the Perl code,
duplicating the logic that's already present in the Makefile.
This is only enabled when 'regen_static' is set to true in
data/config.pl.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Plugin/TransAdmin.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Plugin/TransAdmin.pm b/lib/VNDB/Plugin/TransAdmin.pm index 4859ea67..6d4de67e 100644 --- a/lib/VNDB/Plugin/TransAdmin.pm +++ b/lib/VNDB/Plugin/TransAdmin.pm @@ -121,7 +121,7 @@ sub _savelang { # re-read the file and regenerate the JS in case we're not running as CGI if($INC{"FCGI.pm"}) { VNDB::L10N::loadfile(); - VNDB::checkjs(); + system "make -sC $VNDB::ROOT js" if $self->{regen_static}; } } |