File: download-pandoc

package info (click to toggle)
libpandoc-wrapper-perl 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: perl: 589; makefile: 5; sh: 1
file content (27 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env perl
use strict;
use warnings;
use Pandoc::Release;

my $range = join ',', @ARGV;
my $verbose = 1;

my @releases = $range =~ /^(==v?)?(\d+(\.\d)*)$/
    ? get($2, verbose => $verbose)
    : list(range => $range, verbose => $verbose);

foreach (@releases) {
    $_->download( dir => 'xt/deb', bin => 'xt/bin', verbose => $verbose );
}

=head1 DESCRIPTION

This script can be used to download binary executables of Pandoc. For instance
to download a specific release or list of releases:

  ./xt/download-pandoc 2.1.0
  ./xt/download-pandoc '>=2.1.0'

Debian packages are put into C<xt/deb/> and Pandoc executables into C<xt/bin/>.

=cut