1 [![Build Status](https://travis-ci.org/rust-lang/rust-installer.svg?branch=master)](https://travis-ci.org/rust-lang/rust-installer)
3 A generator for the install.sh script commonly used to install Rust in
4 Unix environments. It is used By Rust, Cargo, and is intended to be
5 used by a future combined installer of Rust + Cargo.
10 ./gen-installer.sh --product-name=Rust \
11 --rel-manifest-dir=rustlib \
12 --success-message=Rust-is-ready-to-roll. \
13 --image-dir=./install-image \
16 --non-installed-overlay=./overlay \
17 --package-name=rustc-nightly-i686-apple-darwin \
18 --component-name=rustc \
19 --legacy-manifest-dirs=rustlib \
23 Or, to just generate the script.
26 ./gen-install-script.sh --product-name=Rust \
27 --rel-manifest-dir=rustlib \
28 --success-message=Rust-is-ready-to-roll. \
29 --output-script=install.sh \
30 --legacy-manifest-dirs=rustlib
33 *Note: the dashes in `success-message` are converted to spaces. The
34 script's argument handling is broken with spaces.*
36 To combine installers.
39 ./combine-installers.sh --product-name=Rust \
40 --rel-manifest-dir=rustlib \
41 --success-message=Rust-is-ready-to-roll. \
44 --non-installed-overlay=./overlay \
45 --package-name=rustc-nightly-i686-apple-darwin \
46 --legacy-manifest-dirs=rustlib \
47 --input-tarballs=./rustc.tar.gz,cargo.tar.gz
52 * Make install.sh not have to be customized, pull it's data from a
54 * Be more resiliant to installation failures, particularly if the disk
56 * Pre-install and post-uninstall scripts.
57 * Allow components to depend on or contradict other components.
58 * Sanity check that expected destination dirs (bin, lib, share exist)?
59 * Add --docdir flag. Is there a standard name for this?
60 * Remove empty directories on uninstall.
61 * Detect mismatches in --prefix, --mandir, etc. in follow-on
63 * Fix argument handling for spaces.
68 This software is distributed under the terms of both the MIT license
69 and/or the Apache License (Version 2.0), at your option.
71 See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT) for details.