]> mj.ucw.cz Git - gallery.git/commitdiff
Gallery2: Let mj-upload call gal gen as well
authorMartin Mares <mj@ucw.cz>
Sat, 29 Dec 2012 11:16:57 +0000 (12:16 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Feb 2015 20:14:16 +0000 (21:14 +0100)
gal2/bin/gal-mj-upload

index 5ce096dcad41274546c36c285d8a3e90011edf0c..b92c3c2145911eba2bfb68349c2aa31094bb85ec 100755 (executable)
@@ -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";