diff --git a/Cargo.toml b/Cargo.toml
index 4f188af674..d3a3056038 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,6 +64,6 @@ path = "src/rustup/lib.rs"
test = false # no unit tests
[[bin]]
-name = "rustup-setup"
+name = "rustup-init"
path = "src/rustup-cli/main.rs"
test = false # no unit tests
diff --git a/README.md b/README.md
index 9608352265..d13d8b26a1 100644
--- a/README.md
+++ b/README.md
@@ -379,34 +379,34 @@ documentation for [multirust] and [multirust-dist].
The primary installation method, as described at
[www.rustup.rs](https://www.rustup.rs), differs by platform:
-* On Windows, download and run the [rustup-setup.exe for the
+* On Windows, download and run the [rustup-init.exe for the
`i686-pc-windows-gnu` target][setup]. Although this build of
`rustup` installs compilers targeting the GNU ABI by default,
compilers targetting the MSVC ABI can be installed with e.g. `rustup
update stable-msvc`.
* On Unix, run `curl https://sh.rustup.rs -sSf | sh` in your
shell. This downloads and runs the correct version of
- `rustup-setup` for your platform.
+ `rustup-init` for your platform.
-[setup]: https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-setup.exe
+[setup]: https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe
-If you prefer you can directly download `rustup-setup` for the
+If you prefer you can directly download `rustup-init` for the
platform of your choice:
-- [aarch64-unknown-linux-gnu](https://static.rust-lang.org/rustup/dist/aarch64-unknown-linux-gnu/rustup-setup)
-- [arm-unknown-linux-gnueabi](https://static.rust-lang.org/rustup/dist/arm-unknown-linux/rustup-setup)
-- [arm-unknown-linux-gnueabihf](https://static.rust-lang.org/rustup/dist/arm-unknown-linux-gnueabihf/rustup-setup)
-- [armv7-unknown-linux-gnueabihf](https://static.rust-lang.org/rustup/dist/armv7-unknown-linux-gnueabihf/rustup-setup)
-- [i686-apple-darwin](https://static.rust-lang.org/rustup/dist/i686-apple-darwin/rustup-setup)
-- [i686-pc-windows-gnu](https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-setup.exe)
-- [i686-pc-windows-msvc](https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-setup.exe)[†](#vs2015)
-- [i686-unknown-linux-gnu](https://static.rust-lang.org/rustup/dist/i686-unknown-linux-gnu/rustup-setup)
-- [x86_64-apple-darwin](https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-setup)
-- [x86_64-pc-windows-gnu](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-setup.exe)
-- [x86_64-pc-windows-msvc](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-setup.exe)[†](#vs2015)
-- [x86_64-unknown-freebsd](https://static.rust-lang.org/rustup/dist/x86_64-unknown-freebsd/rustup-setup)
-- [x86_64-unknown-linux-gnu](https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-setup)
-- [x86_64-unknown-netbsd](https://static.rust-lang.org/rustup/dist/x86_64-unknown-netbsd/rustup-setup)
+- [aarch64-unknown-linux-gnu](https://static.rust-lang.org/rustup/dist/aarch64-unknown-linux-gnu/rustup-init)
+- [arm-unknown-linux-gnueabi](https://static.rust-lang.org/rustup/dist/arm-unknown-linux/rustup-init)
+- [arm-unknown-linux-gnueabihf](https://static.rust-lang.org/rustup/dist/arm-unknown-linux-gnueabihf/rustup-init)
+- [armv7-unknown-linux-gnueabihf](https://static.rust-lang.org/rustup/dist/armv7-unknown-linux-gnueabihf/rustup-init)
+- [i686-apple-darwin](https://static.rust-lang.org/rustup/dist/i686-apple-darwin/rustup-init)
+- [i686-pc-windows-gnu](https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe)
+- [i686-pc-windows-msvc](https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-init.exe)[†](#vs2015)
+- [i686-unknown-linux-gnu](https://static.rust-lang.org/rustup/dist/i686-unknown-linux-gnu/rustup-init)
+- [x86_64-apple-darwin](https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init)
+- [x86_64-pc-windows-gnu](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe)
+- [x86_64-pc-windows-msvc](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)[†](#vs2015)
+- [x86_64-unknown-freebsd](https://static.rust-lang.org/rustup/dist/x86_64-unknown-freebsd/rustup-init)
+- [x86_64-unknown-linux-gnu](https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init)
+- [x86_64-unknown-netbsd](https://static.rust-lang.org/rustup/dist/x86_64-unknown-netbsd/rustup-init)
†
MSVC builds of `rustup` additionally require an [installation of
diff --git a/appveyor.yml b/appveyor.yml
index c99d7d6763..295c91a69b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -54,6 +54,10 @@ after_test:
- powershell -File ci/prepare-deploy-appveyor.ps1
artifacts:
+ - path: dist\$(TARGET)\rustup-init.exe
+ name: rustup-init
+ - path: dist\$(TARGET)\rustup-init.exe.sha256
+ name: rustup-init-sha
- path: dist\$(TARGET)\rustup-setup.exe
name: rustup-setup
- path: dist\$(TARGET)\rustup-setup.exe.sha256
@@ -68,7 +72,7 @@ deploy:
bucket: dev-static-rust-lang-org
set_public: true
region: us-west-1
- artifact: rustup-setup,rustup-setup-sha
+ artifact: rustup-init,rustup-init-sha,rustup-setup,rustup-setup-sha
folder: rustup
on:
branch: master
@@ -81,7 +85,7 @@ deploy:
bucket: static-rust-lang-org
set_public: true
region: us-west-1
- artifact: rustup-setup,rustup-setup-sha
+ artifact: rustup-init,rustup-init-sha,rustup-setup,rustup-setup-sha
folder: rustup
on:
branch: stable
diff --git a/ci/prepare-deploy-appveyor.ps1 b/ci/prepare-deploy-appveyor.ps1
index 8a4dca207b..5df8d6c323 100644
--- a/ci/prepare-deploy-appveyor.ps1
+++ b/ci/prepare-deploy-appveyor.ps1
@@ -6,12 +6,17 @@ if ($env:APPVEYOR_REPO_BRANCH -eq "auto") {
exit 0
}
+# Copy rustup-init to rustup-setup for backwards compatibility
+cp target\release\rustup-init.exe target\release\rustup-setup.exe
+
# Generate hashes
Get-FileHash .\target\release\* | ForEach-Object {[io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n")}
# Prepare bins for upload
$dest = "dist\$env:TARGET"
md -Force "$dest"
+cp target\release\rustup-init.exe "$dest/"
+cp target\release\rustup-init.exe.sha256 "$dest/"
cp target\release\rustup-setup.exe "$dest/"
cp target\release\rustup-setup.exe.sha256 "$dest/"
diff --git a/ci/prepare-deploy-travis.sh b/ci/prepare-deploy-travis.sh
index 2f88feb246..730e118410 100644
--- a/ci/prepare-deploy-travis.sh
+++ b/ci/prepare-deploy-travis.sh
@@ -23,6 +23,9 @@ if [[ "$TARGET" == "x86_64-unknown-linux-gnu" && "$TRAVIS_BRANCH" == "stable" ]]
#git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages;
fi;
+# Copy rustup-init to rustup-setup for backwards compatibility
+cp target/$TARGET/release/rustup-init target/$TARGET/release/rustup-setup
+
# Generate hashes
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
find "target/$TARGET/release/" -maxdepth 1 -type f -exec sh -c 'shasum -a 256 -b "{}" > "{}.sha256"' \;;
@@ -36,6 +39,8 @@ dest="deploy"
# Prepare bins for upload
bindest="$dest/dist/$TARGET"
mkdir -p "$bindest/"
+cp target/$TARGET/release/rustup-init "$bindest/"
+cp target/$TARGET/release/rustup-init.sha256 "$bindest/"
cp target/$TARGET/release/rustup-setup "$bindest/"
cp target/$TARGET/release/rustup-setup.sha256 "$bindest/"
@@ -43,7 +48,7 @@ if [ "$TARGET" != "x86_64-unknown-linux-gnu" ]; then
exit 0
fi
-cp rustup-setup.sh "$dest/"
+cp rustup-init.sh "$dest/"
# Prepare website for upload
cp -R www "$dest/www"
diff --git a/rustup-setup.sh b/rustup-init.sh
similarity index 97%
rename from rustup-setup.sh
rename to rustup-init.sh
index a5e3b43865..ed04ccdaf8 100755
--- a/rustup-setup.sh
+++ b/rustup-init.sh
@@ -37,10 +37,10 @@ main() {
;;
esac
- local _url="$RUSTUP_UPDATE_ROOT/$_arch/rustup-setup$_ext"
+ local _url="$RUSTUP_UPDATE_ROOT/$_arch/rustup-init$_ext"
local _dir="$(mktemp -d 2>/dev/null || ensure mktemp -d -t rustup)"
- local _file="$_dir/rustup-setup$_ext"
+ local _file="$_dir/rustup-init$_ext"
printf "\33[1minfo:\33[0m downloading installer\n"
diff --git a/src/rustup-cli/main.rs b/src/rustup-cli/main.rs
index b1a3e05486..bad873bc67 100644
--- a/src/rustup-cli/main.rs
+++ b/src/rustup-cli/main.rs
@@ -76,7 +76,8 @@ fn run_multirust() -> Result<()> {
multirust_mode::main()
}
Some(n) if n.starts_with("multirust-setup")||
- n.starts_with("rustup-setup") => {
+ n.starts_with("rustup-setup") ||
+ n.starts_with("rustup-init") => {
// NB: The above check is only for the prefix of the file
// name. Browsers rename duplicates to
// e.g. multirust-setup(2), and this allows all variations
diff --git a/src/rustup-cli/self_update.rs b/src/rustup-cli/self_update.rs
index e4c7914c67..cfb525c177 100644
--- a/src/rustup-cli/self_update.rs
+++ b/src/rustup-cli/self_update.rs
@@ -875,7 +875,7 @@ pub fn update() -> Result<()> {
pub fn prepare_update() -> Result