Package list libcryptx-perl / 32535c3
improved update-libtom.pl script Karel Miko 2 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
22 use Modern::Perl;
33 use File::Find qw(find);
44 use File::Slurper qw(read_text write_text);
5 use File::Glob qw(bsd_glob);
56 use FindBin;
67
78 my $ltc_branch = "develop";
910 my $tmpdir = "/tmp/libtom.git.checkout.$$";
1011
1112 warn "update libtommath from github (branch: $ltm_branch)..\n";
13 system 'rm', '-rf', bsd_glob("$FindBin::Bin/ltm/*");
1214 system "rm -rf $tmpdir; mkdir $tmpdir";
1315 system "git clone -b $ltm_branch https://github.com/libtom/libtommath.git $tmpdir && cp -R $tmpdir/bn*.c $tmpdir/tom*.h $FindBin::Bin/ltm/ && echo ok";
1416
1517 warn "update libtomcrypt from github (branch: $ltc_branch)..\n";
18 system 'rm', '-rf', bsd_glob("$FindBin::Bin/ltc/*");
1619 system "rm -rf $tmpdir; mkdir $tmpdir";
1720 system "git clone -b $ltc_branch https://github.com/libtom/libtomcrypt.git $tmpdir && cp -R $tmpdir/src/* $FindBin::Bin/ltc/ && echo ok";
1821 system "rm -rf $tmpdir";