small fix to pass manpage path to packaging script

This commit is contained in:
Bryan Thornbury 2016-03-22 16:00:09 -07:00
parent ab14fb1437
commit 2abedf79e2
2 changed files with 6 additions and 1 deletions

View file

@ -68,6 +68,7 @@ namespace Microsoft.DotNet.Cli.Build
var inputRoot = c.BuildContext.Get<string>("SharedHostPublishRoot");
var debFile = c.BuildContext.Get<string>("SharedHostInstallerFile");
var objRoot = Path.Combine(Dirs.Output, "obj", "debian", "sharedhost");
var manPagesDir = Path.Combine(Dirs.RepoRoot, "Documentation", "manpages");
if (Directory.Exists(objRoot))
{
@ -77,7 +78,7 @@ namespace Microsoft.DotNet.Cli.Build
Directory.CreateDirectory(objRoot);
Cmd(Path.Combine(Dirs.RepoRoot, "scripts", "package", "package-sharedhost-debian.sh"),
"--input", inputRoot, "--output", debFile, "--obj-root", objRoot, "--version", version)
"--input", inputRoot, "--output", debFile, "--obj-root", objRoot, "--version", version, "-m", manPagesDir)
.Execute()
.EnsureSuccessful();
return c.Success();

View file

@ -57,6 +57,10 @@ while [[ $# > 0 ]]; do
--help)
help
;;
-m|--manpages)
MANPAGE_DIR=$2
shift
;;
*)
break
;;