summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2010-06-29 13:41:55 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2010-06-29 13:41:55 +0000
commita92416df308df4b54ed79f6de118b32ca10f2aef (patch)
treee467d802ccc7002d8f01655aac7627a026b149ff /devtools
parent76f0ccefb8b3a390cc32a861ab22da4e722bda50 (diff)
downloadMPC-a92416df308df4b54ed79f6de118b32ca10f2aef.tar.gz
ChangeLogTag: Tue Jun 29 13:41:39 UTC 2010 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/document_template.pl23
1 files changed, 9 insertions, 14 deletions
diff --git a/devtools/document_template.pl b/devtools/document_template.pl
index 6ec57d98..9ffed0ad 100755
--- a/devtools/document_template.pl
+++ b/devtools/document_template.pl
@@ -163,20 +163,15 @@ sub display_template {
sub usageAndExit {
- my $b = basename($0);
- my $langs = join(' ', sort(Creator::validLanguages()));
- print <<'EOF';
-document_template.pl v$version
-Usage: $b <template> [<outputfile> [language]]
-
-outputfile - This defaults to the name of the template file with the .mpd
- extension replaced with '.html' If <outputfile> ends in '.txt',
- the output is in text format similar to what is found in
- .../docs/templates.
-language - This defaults to the language for which the template is designed.
- It can be any of the valid language settings for MPC:
- $langs
-EOF
+ print "document_template.pl v$version\n",
+ "Usage: ", basename($0), " <template> [<outputfile> [language]]\n\n",
+ "outputfile - This defaults to the name of the template file with the .mpd\n",
+ " extension replaced with '.html' If <outputfile> ends in '.txt',\n",
+ " the output is in text format similar to what is found in\n",
+ " .../docs/templates.\n",
+ "language - This defaults to the language for which the template is designed.\n",
+ " It can be any of the valid language settings for MPC:\n",
+ join(' ', sort(Creator::validLanguages())), "\n";
exit(0);
}