| commit | dc09347b1caca92bbaa3fa6aa7180d50a9beb19c | [log] [tgz] |
|---|---|---|
| author | Brian Anderson <banderson@mozilla.com> | Mon Nov 24 14:55:31 2014 -0800 |
| committer | Brian Anderson <banderson@mozilla.com> | Fri Dec 05 15:37:06 2014 -0800 |
| tree | 661a8ada36362f85db626eef8f2bb96576756ed9 | |
| parent | 5ec531f284e0a4d80fe795a0c3648bcd76fb7b81 [diff] |
Redirect stderr when verifying binary
A generator for the install.sh script commonly used to install Rust in Unix environments. It is used By Rust, Cargo, and is intended to be used by a future combined installer of Rust + Cargo.
./gen-installer.sh --product-name=Rust \
--verify-bin=rustc \
--rel-manifest-dir=rustlib \
--success-message=Rust-is-ready-to-roll. \
--image-dir=./install-image \
--work-dir=./temp \
--output-dir=./dist \
--non-installed-prefixes="foo,bin/bar,lib/baz" \
--package-name=rustc-nightly-i686-apple-darwin
Or, to just generate the script.
./gen-install-script.sh --product-name=Rust \
--verify-bin=rustc \
--rel-manifest-dir=rustlib \
--success-message=Rust-is-ready-to-roll. \
--output-script=install.sh
Note: the dashes in success-message are converted to spaces. The script's argument handling is broken with spaces.