about summary refs log tree commit diff
path: root/src/librustpkg/path_util.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14rustpkg: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-12/+13
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-5/+1
In rustpkg, pass around sysroot; in rustpkg tests, set the sysroot manually so that tests can find libcore and such. With bonus metadata::filesearch refactoring to avoid copies.
2013-05-03rustpkg: Implement install commandTim Chevalier-11/+119
The install command should work now, though it only installs in-place (anything else has to wait until I implement RUST_PATH). Also including: core: Add remove_directory_recursive, change copy_file Make copy_file preserve permissions, and add a remove_directory_recursive function.
2013-04-27only use #[no_core] in libcoreDaniel Micay-3/+0
2013-04-26core: Move mkdir_recursive from rustpkg into core::osTim Chevalier-39/+5
mkdir_recursive creates a directory as well as any of its parent directories that don't exist already. Seems like a useful thing to have in core.
2013-04-24rustpkg: Make path searching work as described in the rustpkg docTim Chevalier-52/+116
rustpkg now searches for package directories in ./src rather than in . . I also added a rudimentary RUST_PATH that's currently hard-wired to the current directory. rustpkg now uses src/, lib/, and build/ directories as described in the manual. Most of the existing test scenarios build now; the README file (in a separate commit) explains which ones.
2013-04-24libcore: unify `gen_<type>` methods on `rand::RngUtil` into the generic `gen`.Huon Wilson-1/+1
This moves all the basic random value generation into the Rand instances for each type and then removes the `gen_int`, `gen_char` (etc) methods on RngUtil, leaving only the generic `gen` and the more specialised methods. Also, removes some imports that are redundant due to a `use core::prelude::*` statement.
2013-04-24libcore: remove @Rng from rand, and use traits instead.Huon Wilson-1/+1
Also, rename RandRes -> IsaacRng, and make the constructors static methods.
2013-04-17rustpkg: Fail when crate inference fails; inject link attributesTim Chevalier-1/+20
1. Fail when there's no package script and no crates named main.rs, lib.rs, bench.rs, or test.rs. 2. Inject the crate link_meta "name" and "vers" attributes, so that the output file gets named correctly in the library case. 3. Normalize '-' to '_' in package names.
2013-04-15TidyTim Chevalier-2/+2
2013-04-12rustpkg: Factor out tests; use a condition instead of returning an optionTim Chevalier-0/+83
Pulled out tests into their own modules inside the files they test, as per the draft style guidelines. Started a new module, path_util, for utility functions to do with paths and directories. Changed default_dest_dir to use a condition and return Path instead of Option<Path>.