added location for added page file to be miggitdir
authorRogan Hamby <rhamby@esilibrary.com>
Thu, 8 Feb 2018 19:51:49 +0000 (14:51 -0500)
committerRogan Hamby <rhamby@esilibrary.com>
Thu, 8 Feb 2018 19:51:49 +0000 (14:51 -0500)
mig
mig-bin/mig-reporter

diff --git a/mig b/mig
index 3fa227f..14b97e4 100755 (executable)
--- a/mig
+++ b/mig
@@ -242,7 +242,7 @@ Optional parameters are :
 --added_page_title and --added_page_file 
 
 If one is used both must be.  The added page file can be plain text or asciidoc.  This
-adds an extra arbitrary page of notes to the report.
+adds an extra arbitrary page of notes to the report.  Mig assumes the page file is in the mig git directory.
 
 --tags
 
index 2dc23b9..d4c0217 100755 (executable)
@@ -107,6 +107,7 @@ my $dom = $parser->parse_file($reports_xml);
 if (defined $added_page_file or defined $added_page_title) {
     abort('must specify --added_page_file and --added_page_title') unless defined $added_page_file and defined $added_page_title;
     }
+if (defined $added_page_file) { $added_page_file = $MIGGITDIR . $added_page_file; }
 if ($MIGSCHEMA eq 'full') { $MIGSCHEMA = ''; }
 
 my $dbh = Mig::db_connect();