File: setup.pl

package info (click to toggle)
libmath-int128-perl 0.22-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 604 kB
  • sloc: perl: 2,614; ansic: 340; makefile: 3
file content (25 lines) | stat: -rwxr-xr-x 846 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
#!/usr/bin/perl

use strict;
use warnings;

unless ($ENV{TRAVIS}) {
    die "This script is only intended to be run from Travis CI platform\n";
}

unlink "perl_math_int64.h";
symlink "dependencies/p5-Math-Int64/c_api_client/perl_math_int64.h", "perl_math_int64.h"
    or die "unable to symlink perl_math_int64.h: $!";

unlink "perl_math_int64.c";
symlink "dependencies/p5-Math-Int64/c_api_client/perl_math_int64.c", "perl_math_int64.c"
    or die "unable to symlink perl_math_int64.c: $!";

mkdir "dependencies";
chdir "dependencies" or die "unable to chdir to dependencies: $!";

system "git clone https://github.com/salva/p5-Module-CAPIMaker.git";
system "cd p5-Module-CAPIMaker && perl Makefile.PL && make install";

system "git clone https://github.com/salva/p5-Math-Int64.git";
system "cd p5-Math-Int64 && perl Makefile.PL && make install";