aboutsummaryrefslogtreecommitdiffstats
path: root/readme_generator.pl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--readme_generator.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/readme_generator.pl b/readme_generator.pl
index 5a997e4..dc3b277 100644
--- a/readme_generator.pl
+++ b/readme_generator.pl
@@ -43,7 +43,14 @@ sub read_input_file {
close $rfh;
- create_output_file($dir, 'README.md', $parser);
+ my @other_files = glob($dir . "/*.pl");
+
+ if (@other_files > 1) {
+ $filename =~ s/\.pl$//;
+ create_output_file($dir, "README-$filename.md", $parser);
+ } else {
+ create_output_file($dir, "README.md", $parser);
+ }
}
sub create_output_file {