]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #5847 : catamorphism/rust/rustpkg, r=catamorphism
authorbors <bors@rust-lang.org>
Fri, 12 Apr 2013 19:57:58 +0000 (12:57 -0700)
committerbors <bors@rust-lang.org>
Fri, 12 Apr 2013 19:57:58 +0000 (12:57 -0700)
r? @graydon This is preliminary work on bringing rustpkg up to conformance with #5679
and related issues.

This change makes rustpkg infer a package ID from its containing directory,
instead of requiring name and vers attributes in the code. Many aspects of it
are incomplete; I've only tested one package (see README.txt) and one command,
"build". So far it only works for local packages.

I also removed code for several of the package commands other than "build",
replacing them with stubs that fail, since they used package IDs in ways that
didn't jibe well with the new scheme. I will re-implement the commands one
at a time.

1  2 
src/librustpkg/rustpkg.rc
src/librustpkg/util.rs

index c0d77f60d69a111861010c14a40d98d883a8380c,399fcec6804017b592570810797bfd7f368723c7..83f5c78af43549c87fa9282f84eff67dde361a15
  #[allow(vecs_implicitly_copyable,
          non_implicitly_copyable_typarams)];
  
 -extern mod core(vers = "0.6");
 -extern mod std(vers = "0.6");
 -extern mod rustc(vers = "0.6");
 -extern mod syntax(vers = "0.6");
 +extern mod core(vers = "0.7-pre");
 +extern mod std(vers = "0.7-pre");
 +extern mod rustc(vers = "0.7-pre");
 +extern mod syntax(vers = "0.7-pre");
  
  use core::*;
+ pub use core::path::Path;
  use core::container::Map;
  use core::hashmap::HashMap;
  use core::io::WriterUtil;
Simple merge