custom_build: build output goes in the directory for the req, not hard coded to Target

This broke crossbuilds that had Host deps that used custom build
scripts, typically resulting in a failure to link (due to bad
relocations or symbols) the final executable or library.

Probably should have rustc check when generating an rlib that all the
containing objects have the appropriate arch.
Warn if none of documentation, homepage or repository are provided

It's really hard to find out any information about a project if it
doesn't have any of these.

As a bonus I added a shebang to .travis.install.deps.sh so the README
instructions actually work.

Closes #998
auto merge of #1053 : sfackler/cargo/master, r=alexcrichton

It's really hard to find out any information about a project if it
doesn't have any of these.

As a bonus I added a shebang to .travis.install.deps.sh so the README
instructions actually work.

Closes #998
Fix mac nightly builds

Older versions of curl apparently don't peel off the query parameters when
looking up filenames, so make two copies of the search results file in hope that
curl will find one of them!
auto merge of #1057 : alexcrichton/cargo/fix-nightly, r=brson

Older versions of curl apparently don't peel off the query parameters when
looking up filenames, so make two copies of the search results file in hope that
curl will find one of them!
Merge branch 'fix-custom-build-cross' of https://github.com/jmesmon/cargo into pr-1012
Add a test for PR #1012
auto merge of #1060 : alexcrichton/cargo/pr-1012, r=alexcrichton
Update git2 and cargo snapshots

Should fix #1032 and #1029
auto merge of #1045 : alexcrichton/cargo/update-git2, r=alexcrichton

Should fix #1032 and #1029
Register new snapshots

Should fix the mac bots
auto merge of #1064 : alexcrichton/cargo/snapshots, r=alexcrichton

Should fix the mac bots
Fix cases where a registry is not updated

If a registry already knew about a package, but didn't know about newly
published version of a package, then the registry would occasionally not be
updated when it otherwise needed to be.
auto merge of #1067 : alexcrichton/cargo/fix-registry-update, r=alexcrichton

If a registry already knew about a package, but didn't know about newly
published version of a package, then the registry would occasionally not be
updated when it otherwise needed to be.
Move all deps to the registry
Update rust and all deps
auto merge of #1066 : alexcrichton/cargo/registry-deps, r=alexcrichton
Update to new-style rustc CLI args
auto merge of #1075 : cmr/cargo/rustc-vverbose, r=alexcrichton

Closes #1073
Use std::collections::{BTreeSet, BTreeMap} instead of std::collections::{TreeSet, TreeMap}.