tracks/perl6/bin/exercise-gen.pl6 in trackler-2.2.1.105 vs tracks/perl6/bin/exercise-gen.pl6 in trackler-2.2.1.106

- old
+ new

@@ -1,8 +1,9 @@ #!/usr/bin/env perl6 use v6; use YAML::Parser::LibYAML; +use nqp; use lib (my $base-dir = $?FILE.IO.resolve.parent.parent).add('lib'); use Exercism::Generator; my %*SUB-MAIN-OPTS = :named-anywhere; @@ -62,9 +63,10 @@ given Exercism::Generator.new: :$exercise, data => yaml-parse $yaml-file.absolute { given $exercise-dir.add("$exercise.t") -> $testfile { $testfile.spurt: .test; $testfile.chmod: 0o755; + try nqp::symlink("../../$_", ~$exercise-dir.add(".meta/solutions/$_")) given $testfile.basename; } $exercise-dir.add("{.data<exercise>}.pm6").spurt: .stub; $exercise-dir.add('.meta/solutions').mkdir; $exercise-dir.add(".meta/solutions/{.data<exercise>}.pm6").spurt: .example; }