From: Martin Mares Date: Sat, 29 Dec 2012 11:16:57 +0000 (+0100) Subject: Gallery2: Let mj-upload call gal gen as well X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=49aa84fa326dcdb7b7261ae6015e024efdb9dd3e;p=gallery.git Gallery2: Let mj-upload call gal gen as well --- diff --git a/gal2/bin/gal-mj-upload b/gal2/bin/gal-mj-upload index 5ce096d..b92c3c2 100755 --- a/gal2/bin/gal-mj-upload +++ b/gal2/bin/gal-mj-upload @@ -3,6 +3,10 @@ use strict; use warnings; +print "## Ensuring that photos are generated\n"; +system "gal", "gen"; +die if $?; + use Cwd; my $cwd = getcwd; my ($root, $album) = $cwd =~ m{(.*)/photos/(.*)} or die "Cannot identify album from current directory, giving up.\n";