Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.