about summary refs log tree commit diff
path: root/src/librustpkg/conditions.rs
AgeCommit message (Collapse)AuthorLines
2014-02-02Remove rustpkg.Corey Richardson-46/+0
I'm sorry :'( Closes #11859
2014-01-23rustpkg::crate_id: Remove CrateIdklutzy-1/+1
There is no significant difference between `rustpkg::crate_id::CrateId` and `syntax::crateid::CrateId`. rustpkg's one is replaced by syntax's one.
2013-12-29Rename uses of PkgId to CrateId in librustpkgLuis de Bethencourt-4/+4
2013-12-08Remove dead codesKiet Tran-16/+0
2013-11-11Move std::rt::io to std::ioAlex Crichton-3/+3
2013-11-12Implemented a ProcessExit enum and helper methods to std::rt::io::process ↵Matthew Iselin-1/+2
for getting process termination status, or the signal that terminated a process. A test has been added to rtio-processes.rs to ensure signal termination is picked up correctly.
2013-10-23Merge remote-tracking branch 'upstream/master'Ziad Hatahet-0/+6
2013-10-22rustpkg: Support arbitrary dependencies in the install APITim Chevalier-0/+6
api::install_pkg now accepts an argument that's a list of (kind, path) dependency pairs. This allows custom package scripts to declare C dependencies, as is demonstrated in rustpkg::tests::test_c_dependency_ok. Closes #6403
2013-10-22Remove thread-blocking call to `libc::stat` in `Path::stat`Ziad Hatahet-3/+2
Fixes #9958
2013-10-21rustpkg: Search for crates in the current directoryTim Chevalier-4/+0
As per #8520, find crates in the current working directory even if it's not a workspace. Closes #8520
2013-10-18rustpkg: Make rustpkg tests stop comparing datesTim Chevalier-0/+4
Instead of scrutinizing modification times in rustpkg tests, change output files to be read-only and detect attempts to write to them (hack suggested by Jack). This avoids time granularity problems. As part of this change, I discovered that some dependencies weren't getting written correctly (involving built executables and library files), so this patch fixes that too. This partly addresses #9441, but one test (test_rebuild_when_needed) is still ignored on Linux.
2013-10-10rustpkg: Make checked-out source files read-only, and overhaul where ↵Tim Chevalier-0/+4
temporary files are stored rustpkg now makes source files that it checks out automatically read-only, and stores them under build/. Also, refactored the `PkgSrc` type to keep track of separate source and destination workspaces, as well as to have a `build_workspace` method that returns the workspace to put temporary files in (usually the source, sometimes the destination -- see comments for more details). Closes #6480
2013-09-08rustpkg: Use workcacheTim Chevalier-0/+6
rustpkg now uses the workcache library to avoid recompilation. Hooray!
2013-09-04Added explicit pub to several conditions. Enables completion of #6009.Felix S. Klock II-8/+8
2013-09-03Fixes #8881. condition! imports parent's pub identifiersjmgrosen-8/+8
2013-08-30rustpkg: Add a not_a_workspace conditionTim Chevalier-0/+8
2013-07-13rustpkg: Implement `uninstall` and `list` commandsTim Chevalier-0/+4
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-1/+1
2013-06-01rustc/rusti/rustpkg: Infer packages from `extern mod` directivesTim Chevalier-3/+3
This commit won't be quite as useful until I implement RUST_PATH and until we change `extern mod` to take a general string instead of an identifier (#5682 and #6407). With that said, now if you're using rustpkg and a program contains: extern mod foo; rustpkg will attempt to search for `foo`, so that you don't have to provide a -L directory explicitly. In addition, rustpkg will actually try to build and install `foo`, unless it's already installed (specifically, I tested that `extern mod extra;` would not cause it to try to find source for `extra` and compile it again). This is as per #5681. Incidentally, I changed some driver code to infer the link name from the crate link_meta attributes. If that change isn't ok, say something. Also, I changed the addl_lib_search_paths field in the session options to be an @mut ~[Path] so that it can be modified after expansion but before later phases.
2013-05-14rustpkg: Tests for well-formed and ill-formed package IDs...Tim Chevalier-0/+4
...and cleanup, making how we handle version numbers more rational (specifically, not passing in a versioned name to rustc with the -o flag), and removing unused code.
2013-05-03rustpkg: Implement install commandTim Chevalier-1/+9
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-24rustpkg: Preliminary work on install commandTim Chevalier-0/+5
Mostly just tests (that are ignored); install command is still stubbed out.
2013-04-12rustpkg: Factor out tests; use a condition instead of returning an optionTim Chevalier-0/+17
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>.