]> mj.ucw.cz Git - gallery.git/commitdiff
Gallery2: A simple script for dumping meta-data
authorMartin Mares <mj@ucw.cz>
Sun, 23 Dec 2012 22:46:58 +0000 (23:46 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Feb 2015 20:14:08 +0000 (21:14 +0100)
gal2/gal-metacat [new file with mode: 0755]

diff --git a/gal2/gal-metacat b/gal2/gal-metacat
new file mode 100755 (executable)
index 0000000..44889af
--- /dev/null
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+# UCW Gallery: Dump meta-data
+# (c) 2004--2012 Martin Mares <mj@ucw.cz>
+
+use strict;
+use warnings;
+
+use lib '/home/mj/web/gal2';
+use UCW::Gallery;
+use Data::Dumper;
+
+@ARGV == 1 or die "Usage: $0 <meta-file>\n";
+
+UCW::Gallery::LoadConfig;
+my $meta = UCW::Gallery::ReadMeta($ARGV[0]);
+print Dumper($meta);