From 0fce38b138a36ce0e87ed166e2f5c2b558ba4d4d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 8 May 2021 00:19:01 +0300 Subject: fix: direct people to the right repository --- xtask/src/release.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xtask/src') 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 @@ mod changelog; -use xshell::{cmd, cp, pushd, read_dir, write_file}; +use xshell::{cmd, pushd, read_dir, read_file, write_file}; use crate::{codegen, date_iso, flags, is_release_tag, project_root, Result}; @@ -41,7 +41,9 @@ impl flags::Release { { let src = project_root().join("./docs/user/").join(adoc); let dst = website_root.join(adoc); - cp(src, dst)?; + + 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=="); + write_file(dst, contents)?; } let tags = cmd!("git tag --list").read()?; -- cgit v1.2.3