Codebase list libcryptx-perl / 653122d _generators / gen.pl
653122d

Tree @653122d (Download .tar.gz)

gen.pl @653122draw · history · blame

use strict;
use warnings;

if ($ARGV[0] && $ARGV[0] =~ /genco/) {
  system($^X, qw[_generators/tt_cipher.pl install_code]);
  system($^X, qw[_generators/tt_digest.pl install_code]);
  system($^X, qw[_generators/tt_mac.pl install_code]);
  system($^X, qw[_generators/tt_mode.pl install_code]);
}
elsif ($ARGV[0] && $ARGV[0] =~ /gente/) {
  die "blib dir not found, run 'make all'\n" unless -d 'blib';
  system($^X, qw[-Mblib _generators/tt_cipher.pl install_tests]);
  system($^X, qw[-Mblib _generators/tt_digest.pl install_tests]);
  system($^X, qw[-Mblib _generators/tt_mac.pl install_tests]);
  system($^X, qw[-Mblib _generators/tt_mode.pl install_tests]);
}
else {
  die "usage:\n $0 gencode\n $0 gentest\n";
}