mirror of
https://github.com/servo/servo.git
synced 2025-07-26 16:50:23 +01:00
Move the servo crate from root to components/servo
This commit is contained in:
parent
b2b6d4d0d1
commit
2f413c8937
15 changed files with 55 additions and 45 deletions
|
@ -37,7 +37,7 @@ class MachCommands(CommandBase):
|
|||
env = self.build_env()
|
||||
env["RUST_BACKTRACE"] = "1"
|
||||
|
||||
args = [path.join("target", "servo")]
|
||||
args = [path.join("components", "servo", "target", "servo")]
|
||||
|
||||
# Borrowed and modified from:
|
||||
# http://hg.mozilla.org/mozilla-central/file/c9cfa9b91dea/python/mozbuild/mozbuild/mach_commands.py#l883
|
||||
|
@ -71,7 +71,7 @@ class MachCommands(CommandBase):
|
|||
def doc(self, params):
|
||||
self.ensure_bootstrapped()
|
||||
return subprocess.call(["cargo", "doc"] + params,
|
||||
env=self.build_env())
|
||||
env=self.build_env(), cwd="components/servo")
|
||||
|
||||
@Command('serve-docs',
|
||||
description='Locally serve Servo and Rust documentation',
|
||||
|
@ -81,13 +81,13 @@ class MachCommands(CommandBase):
|
|||
help="Port to serve documentation at (default is 8888)")
|
||||
def serve_docs(self, port):
|
||||
self.doc([])
|
||||
servedir = path.join("target", "serve-docs")
|
||||
docdir = path.join("target", "doc")
|
||||
servedir = path.join("components", "servo", "target", "serve-docs")
|
||||
docdir = path.join("components", "servo", "target", "doc")
|
||||
|
||||
rmtree(servedir, True)
|
||||
copytree(docdir, servedir, ignore=ignore_patterns('.*'))
|
||||
|
||||
rustdocs = path.join("rust", self.rust_snapshot_path(), "doc")
|
||||
rustdocs = path.join(self.config["tools"]["rust-root"], "doc")
|
||||
copytree(rustdocs, path.join(servedir, "rust"), ignore=ignore_patterns('.*'))
|
||||
|
||||
chdir(servedir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue