aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-05-07 22:19:01 +0100
committerAleksey Kladov <[email protected]>2021-05-07 22:26:29 +0100
commit0fce38b138a36ce0e87ed166e2f5c2b558ba4d4d (patch)
treebcca0329f661bdc36f1bb96e364ba201f57dce4b /xtask/src
parent6860b647a5c296dfd6c10cf7536853fbd9e6fef1 (diff)
fix: direct people to the right repository
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/release.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/xtask/src/release.rs b/xtask/src/release.rs
index 452f351d0..2c0476778 100644
--- a/xtask/src/release.rs
+++ b/xtask/src/release.rs
@@ -1,6 +1,6 @@
1mod changelog; 1mod changelog;
2 2
3use xshell::{cmd, cp, pushd, read_dir, write_file}; 3use xshell::{cmd, pushd, read_dir, read_file, write_file};
4 4
5use crate::{codegen, date_iso, flags, is_release_tag, project_root, Result}; 5use crate::{codegen, date_iso, flags, is_release_tag, project_root, Result};
6 6
@@ -41,7 +41,9 @@ impl flags::Release {
41 { 41 {
42 let src = project_root().join("./docs/user/").join(adoc); 42 let src = project_root().join("./docs/user/").join(adoc);
43 let dst = website_root.join(adoc); 43 let dst = website_root.join(adoc);
44 cp(src, dst)?; 44
45 let contents = read_file(src)?.replace("\n\n===", "\n\n// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository\n\n==");
46 write_file(dst, contents)?;
45 } 47 }
46 48
47 let tags = cmd!("git tag --list").read()?; 49 let tags = cmd!("git tag --list").read()?;