6 print "## Ensuring that photos are generated\n";
12 my ($root, $album) = $cwd =~ m{(.*)/photos/(.*)} or die "Cannot identify album from current directory, giving up.\n";
13 my $static = "$root/static/gallery/photo/$album";
14 -d $static or die "Cannot find generated photos in $static, giving up.\n";
16 print "## Uploading album $album\n";
17 system "rs", "$static/", "jw:www/static/gallery/photo/$album/";
20 print "## Pulling at the server\n";
21 system "ssh", "jw", "cd web && git pull";
24 print "## Regenerating cache at the server\n";
25 system "ssh", "jw", "cd web/photos/$album && ~/web/gal2/gal cache";