diff options
author | Jonathan Pryor <jpryor@novell.com> | 2008-10-18 06:38:30 +0400 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2008-10-18 06:38:30 +0400 |
commit | 875a3b97113908bdd92ed386f100cf63f36a233b (patch) | |
tree | aebe0ef0942686e9a905d501f969a8c345f5802a /scripts/monodocs2html | |
parent | d8617290607a89f9bcb1a928c2d2c1cbe6a5c3fc (diff) |
* scripts/Makefile.am: Install scripts for mdoc-compat commands.
* scripts (svn:ignore): Ignore generated files.
* scripts/mdassembler, scripts/mdvalidater, scripts/monodocer,
scripts/monodocs2html, scripts/monodocs2slashdoc: Added;
"compatibility" scripts, converting the
previous commands into mdoc commands.
svn path=/trunk/mono/; revision=116345
Diffstat (limited to 'scripts/monodocs2html')
-rwxr-xr-x | scripts/monodocs2html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/monodocs2html b/scripts/monodocs2html new file mode 100755 index 00000000000..74d5224c411 --- /dev/null +++ b/scripts/monodocs2html @@ -0,0 +1,37 @@ +#!/bin/sh +cmd_line= + +for option do + case "$option" in + -dest:*) + dir=`echo "$option" | sed 's/^-dest://'` + cmd_line="$cmd_line -o \"$dir\"" + ;; + -dumptemplate) + cmd_line="$cmd_line --default-template" + ;; + -ext:*) + ext=`echo "$option" | sed 's/^-ext://'` + cmd_line="$cmd_line --ext=$ext" + ;; + -onlytype*) + # compat; ignore + ;; + -source:*) + s=`echo "$option" | sed 's/^-source://'` + cmd_line="$cmd_line $s" + ;; + -template:*) + template=`echo "$option" | sed 's/^-template://'` + cmd_line="$cmd_line --template=$template" + ;; + -V | -version) + # compat; ignore + ;; + *) + cmd_line="$cmd_line $option" + ;; + esac +done + +exec mdoc export-html $cmd_line |