aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2021-11-03 16:10:36 +0000
committerPaulo Custodio <pauloscustodio@gmail.com>2021-11-03 16:10:36 +0000
commit3138afab1ae0e0cd8d7b9c0a829e4f2f1bba91a5 (patch)
tree0facebe24fe2df17f07c6d72bd3a2674ed2f342b
parentd12a3c58624c219f252e34b926797aa1b68a69fa (diff)
downloadperlweeklychallenge-club-3138afab1ae0e0cd8d7b9c0a829e4f2f1bba91a5.tar.gz
perlweeklychallenge-club-3138afab1ae0e0cd8d7b9c0a829e4f2f1bba91a5.tar.bz2
perlweeklychallenge-club-3138afab1ae0e0cd8d7b9c0a829e4f2f1bba91a5.zip
Create test Makefile
-rw-r--r--challenge-001/paulo-custodio/go.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge-001/paulo-custodio/go.pl b/challenge-001/paulo-custodio/go.pl
index d4639380d3..411a8c107a 100644
--- a/challenge-001/paulo-custodio/go.pl
+++ b/challenge-001/paulo-custodio/go.pl
@@ -27,5 +27,10 @@ for my $dir (qw(
path("challenge-$nr/paulo-custodio/$dir")->mkpath;
}
path("challenge-$nr/paulo-custodio/README")->spew("Solution by Paulo Custodio\n");
+if (! -f "challenge-$nr/paulo-custodio/Makefile") {
+ path("challenge-$nr/paulo-custodio/Makefile")->spew(
+ "all:\n\tperl ../../challenge-001/paulo-custodio/test.pl\n");
+}
+
chdir("challenge-$nr/paulo-custodio");
system("bash");