Debian Codegraph @

bin/kioku

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4 # PODNAME: kioku
5
6 use KiokuDB;
7 use Try::Tiny;
8
9 unless ( try_run() ) {
10 if ( $INC{"KiokuDB/Cmd.pm"} ) {
11 print "KiokuDB::Cmd is not up to date ($KiokuDB::REQUIRED_CMD_VERSION is required, $KiokuDB::Cmd::VERSION installed)\n";
12 } else {
13 print "KiokuDB::Cmd is not installed (it's now shipped in a separate distribution).\n";
14 }
15 }
16
17 print "\nPlease install an up to date KiokuDB::Cmd from CPAN\n";
18 exit 1;
19
20
21 sub try_run {
22 return unless try { require KiokuDB::Cmd; 1 };
23 return unless KiokuDB::Cmd->is_up_to_date;
24
25 KiokuDB::Cmd->run;
26 exit;
27 }
28
29 __END__
30
31 =pod
32
33 =encoding UTF-8
34
35 =head1 NAME
36
37 kioku
38
39 =head1 VERSION
40
41 version 0.57
42
43 =head1 AUTHOR
44
45 Yuval Kogman <[email protected]>
46
47 =head1 COPYRIGHT AND LICENSE
48
49 This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
50
51 This is free software; you can redistribute it and/or modify it under
52 the same terms as the Perl 5 programming language system itself.
53
54 =cut