From 39e502744c7db993eb0269285082ac5c7b7d4bdd Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Thu, 30 Jan 2020 15:24:56 -0500 Subject: [PATCH] Install robots.txt into rust-docs tarballs --- src/bootstrap/dist.rs | 1 + src/doc/robots.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 8d13df3ee21a4..facf816857fce 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -105,6 +105,7 @@ impl Step for Docs { t!(fs::create_dir_all(&dst)); let src = builder.doc_out(host); builder.cp_r(&src, &dst); + builder.install(&builder.src.join("src/doc/robots.txt"), &dst, 0o644); let mut cmd = rust_installer(builder); cmd.arg("generate") diff --git a/src/doc/robots.txt b/src/doc/robots.txt index 61ee12739fb37..d119cc464731b 100644 --- a/src/doc/robots.txt +++ b/src/doc/robots.txt @@ -1,4 +1,3 @@ -# NB: This file is not automatically deployed. After changes, it needs to be uploaded manually to doc.rust-lang.org User-agent: * Disallow: /0.3/ Disallow: /0.4/