summary refs log tree commit diff
path: root/src/etc/rustup.sh
AgeCommit message (Collapse)AuthorLines
2015-02-16rustup: Fix for locale bugposixphreak-0/+3
Since `tr` converts lowercase to uppercase according to system locale using `LC_CTYPE` environment variable; on some locales, rustup.sh fails to use correct variables names, thus deletes temporarily downloaded files and gives a meaningless error as shown below. This a simple fix which explictly sets `LC_CTYPE` as `C`.
2015-01-21rollup merge of #21274: estsauver/21270Alex Crichton-3/+8
The timezone of the server that builds rustc nightlies appears to be in UTC. From what I can tell, it builds the nightlies at 0300 UTC, which takes about ~15 minutes. So, there were a couple options here for which offset to use. UTC+3 would ensure that you always got the latest rust, but it would mean the script is broken ~15/20 minutes a day. UTC+4 means users get a stale nightly for 45 minutes, but that feels okay to me. Ideally, buildbot would publish the "current" nightly, but that seems unneeded relative to fixing it for all Timezones quickly. Fixes #21270
2015-01-18Make date of nightly in rustup match server TZEarl St Sauver-3/+8
2015-01-17rustup: Don't attempt to download SHA if it existsMichael Pankov-4/+21
This way installer can work fully in offline mode. Put pre-downloaded files (rust-nightly-x86_64-unknown-linux-gnu.tar.gz and rust-nightly-x86_64-unknown-linux-gnu.tar.gz.sha256) into the $HOME/.rustup/YYYY-MM-DD directory as it would be done by script itself. Specify --save and --date=YYYY-MM-DD when running. Files will be picked up and used to install in offline mode.
2015-01-03Download from the combined installerBrian Anderson-1/+1
2015-01-03rustup: Long linesBrian Anderson-1/+4
2015-01-02rustup: Don't do verbose tarball extractionBrian Anderson-1/+1
2015-01-02rustup: Install from the combined installerBrian Anderson-45/+4
2014-12-29rustup: allow the use of either sha256sum or shasum to verify the download hashErick Tryzelaar-2/+16
2014-12-29rustup: Add support for resuming downloadsErick Tryzelaar-2/+15
2014-12-29rustup: allow rust and cargo snapshot dates to be differentErick Tryzelaar-19/+37
2014-12-29rustup: add caching of old nightliesErick Tryzelaar-9/+40
2014-12-29rustup: Add support for verifying remote hashesErick Tryzelaar-0/+32
2014-12-28Split overly long lineJohannes Hoff-1/+3
2014-12-24Better temporary directory nameJohannes Hoff-1/+1
2014-12-24Merge branch 'master' into cfg_tmp_dirJohannes Hoff-61/+86
Conflicts: src/etc/rustup.sh
2014-12-23Merge pull request #19886 from brson/rustupbors-1/+1
rustup: Don't do verbose tarball extraction Reviewed-by: alexcrichton
2014-12-15Add probe and var for fileAaron Friel-1/+2
Was testing rustup on a very minimal Debian installation and got errors during the install process (error occurred in `install.sh` of the Rust nightly.) Noticed that Rustup was downloading the i686 nightly instead of x86-64. Installing `file` fixed the problem, and this patch adds the probe to ensure file is installed before attempting to use it. There may still be an issue with the i686 installation, I did not investigate further.
2014-12-15rustup: Don't do verbose tarball extractionBrian Anderson-1/+1
This creates an enormous amount of spew.
2014-12-03rustup: simplify downloading packagesErick Tryzelaar-8/+9
2014-12-03rustup: extract the tarballs as part of installationErick Tryzelaar-11/+16
2014-12-03rustup: rewrite to protect against truncationErick Tryzelaar-18/+28
This closes #19168. It's possible that if the downloading of `rustup.sh` is interrupted, bad things could happen, such as running a naked "rm -rf /" instead of "rm -rf /path/to/tmpdir". This wraps rustup.sh's functionality in a function that gets called at the last time that should protect us from these truncation errors.
2014-12-03rustup: factor out installing packages into a functionErick Tryzelaar-27/+14
2014-12-03rustup: factor out downloading and extracting the snapshot tarballsErick Tryzelaar-18/+35
2014-12-03rustup: factor out the install flags into a CFG_INSTALL_FLAGS variableErick Tryzelaar-14/+13
2014-12-03rustup: rename TMP_DIR to CFG_TMP_DIRErick Tryzelaar-16/+16
2014-12-03rustup: add a RUST_ prefix to the rust-specific variablesErick Tryzelaar-10/+11
2014-12-03rustup: probe for the existance of tarErick Tryzelaar-2/+3
2014-12-03rustup: make rustup executableErick Tryzelaar-0/+0
2014-12-03whitespace cleanupErick Tryzelaar-1/+1
2014-11-27Fall back to hard coded download directoryJohannes Hoff-1/+13
If mktemp fails, fall back to a hard coded directory, per @nodakai's feedback.
2014-11-22Use mktemp for temporary download directoryJohannes Hoff-7/+1
Using the current directory may not always be appropriate, for example in the case where it will unnecessarily trigger a backup to be made. The only risk with this change is that systems might not have a mktemp. I am not aware of such a system, but have not tested on Windows. It is working on a basic Ubuntu and OS X installation.
2014-10-28Long linesBrian Anderson-1/+2
2014-10-27Untabify rustup.shBrian Anderson-18/+18
2014-10-07Add rustup.sh to the repoBrian Anderson-0/+475
Just to have it somewhere to point to. Updating it will not automatically update the one on static.rust-lang.org.