From: Rogan Hamby Date: Thu, 8 Feb 2018 19:51:49 +0000 (-0500) Subject: added location for added page file to be miggitdir X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=e1ec5cbdfcaa209535943d47136df6321b2e31ea added location for added page file to be miggitdir --- diff --git a/mig b/mig index 3fa227f..14b97e4 100755 --- 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 diff --git a/mig-bin/mig-reporter b/mig-bin/mig-reporter index 2dc23b9..d4c0217 100755 --- a/mig-bin/mig-reporter +++ b/mig-bin/mig-reporter @@ -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();