Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b8866d

Browse files
committed
Change build output messages, and turned off buffering of output so when errors occur they are in the order of operations.
1 parent 36ee13c commit 9b8866d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docsource/builddocs.pl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
main();
1515

1616
sub main{
17+
# turn off buffering of output
18+
$| = 1;
19+
print "Generating utplsql Documenation \n";
20+
print "results will be found in ..\\docs folder \n";
1721
# change current working directory to location of script.
1822
# this keeps realative paths later in script easier to maintain.
1923
# Source: https://sysengineers.wordpress.com/2009/12/04/changing-working-directory-to-script-location-in-perl/
@@ -110,7 +114,8 @@ sub convert_markdown_and_insert {
110114
binmode FILE;
111115
print FILE $output;
112116
close FILE;
113-
117+
118+
print "Inserted $source as html into $dest \n"
114119
}
115120

116121
sub convert_markdown_file {
@@ -135,7 +140,7 @@ sub convert_markdown_file {
135140
print { $OUTFILE } $html or die "Cannot write to $dest";
136141
close $OUTFILE or die "Cannot close $dest";
137142

138-
print "Converted $source to $dest"
143+
print "Converted $source to $dest \n"
139144
}
140145

141146

0 commit comments

Comments
 (0)