Created
October 3, 2014 15:49
-
-
Save ebfe/dcb914d907c4a54a7b8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
mkdir -p target | |
mkdir -p deps | |
git clone https://github.com/rust-lang/semver deps/semver | |
git clone https://github.com/docopt/docopt.rs deps/docopt.rs | |
git clone https://github.com/alexcrichton/curl-rust deps/curl-rust --branch bundle | |
git clone https://github.com/lifthrasiir/rust-encoding deps/rust-encoding | |
git clone https://github.com/alexcrichton/flate2-rs deps/flate2-rs | |
git clone https://github.com/rust-lang/glob deps/glob | |
git clone https://github.com/carllerche/hamcrest-rust.git deps/hamcrest-rust | |
git clone https://github.com/alexcrichton/tar-rs deps/tar-rs | |
git clone https://github.com/alexcrichton/libssh2-static-sys deps/libssh2-static-sys | |
git clone https://github.com/alexcrichton/openssl-static-sys deps/openssl-static-sys | |
git clone https://github.com/alexcrichton/toml-rs deps/toml-rs | |
git clone https://github.com/servo/rust-url deps/rust-url | |
git clone https://github.com/alexcrichton/git2-rs deps/git2-rs | |
git clone https://github.com/alexcrichton/link-config deps/link-config | |
git clone https://github.com/rust-lang/cargo | |
rustc deps/semver/src/lib.rs --crate-type lib --crate-name semver --out-dir target -L target/ | |
rustc deps/docopt.rs/src/lib.rs --crate-type lib --crate-name docopt --out-dir target -L target/ | |
rustc deps/rust-encoding/src/encoding/lib.rs --crate-type lib --crate-name encoding --out-dir target -L target/ | |
OUT_DIR=../../../target/ gmake -C deps/flate2-rs/build/ | |
rustc deps/flate2-rs/src/lib.rs --crate-type lib --crate-name flate2 --out-dir target -L target/ | |
rustc deps/glob/src/lib.rs --crate-type lib --crate-name glob --out-dir target -L target/ | |
rustc deps/hamcrest-rust/src/hamcrest/lib.rs --crate-type lib --crate-name hamcrest --out-dir target -L target/ | |
rustc deps/tar-rs/src/lib.rs --crate-type lib --crate-name tar --out-dir target -L target/ | |
rustc deps/libssh2-static-sys/src/lib.rs --crate-type lib --crate-name libssh2-static-sys --out-dir target -L target/ | |
rustc deps/openssl-static-sys/src/lib.rs --crate-type lib --crate-name openssl-static-sys --out-dir target -L target/ | |
rustc deps/toml-rs/src/lib.rs --crate-type lib --crate-name toml --out-dir target -L target/ | |
rustc deps/rust-url/src/lib.rs --crate-type lib --crate-name url --out-dir target -L target/ | |
rustc deps/docopt.rs/docopt_macros/src/macro.rs --crate-type dylib --crate-name docopt_macros --out-dir target -L target/ | |
rustc deps/link-config/src/lib.rs --crate-type lib --crate-name link-config --out-dir target -L target/ --crate-type dylib | |
rustc deps/git2-rs/libgit2/src/lib.rs --crate-type lib --crate-name libgit2 --out-dir target -L target/ | |
rustc deps/git2-rs/src/lib.rs --crate-type lib --crate-name git2 --out-dir target -L target/ --extern url=target/liburl.rlib | |
rustc deps/curl-rust/curl-sys/src/lib.rs --crate-type lib --crate-name curl-sys --out-dir target -L target/ | |
rustc deps/curl-rust/src/lib.rs --crate-type lib --crate-name curl --out-dir target -L target/ --extern url=target/liburl.rlib | |
export CARGO_PKG_VERSION_MAJOR=0 | |
export CARGO_PKG_VERSION_MINOR=0 | |
export CARGO_PKG_VERSION_PATCH=1 | |
rustc cargo/src/cargo/lib.rs -L target --out-dir target --extern glob=target/libglob.rlib --extern semver=target/libsemver.rlib | |
rustc cargo/src/bin/cargo.rs -L target --out-dir target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment