shutefan
14160cab86
mv: split up uumain
2017-10-06 01:09:06 +02:00
Joshua Miller
e8073d2596
pin dependencies
2017-07-15 15:16:09 -05:00
Will Wykeham
d55e2ee80a
Fix mv build on Windows
2016-11-18 13:58:13 +00:00
Knight
a4bf852207
mv: cleanup the code
2016-08-21 14:57:28 +08:00
Michael Gehring
a2944e06db
Fix clippy warnings
2016-01-06 09:36:20 +01:00
Joseph Crail
8fa09b2004
Remove trait shim needed before Path stabilized
...
Now that Path has stabilized in Rust 1.5, I removed the UUPathExt trait
needed to support stable, beta, and nightly.
2015-12-10 14:20:01 -05:00
Joseph Crail
b90d253584
Refactor and simplify build for utilities.
...
For coreutils, there are two build artifacts:
1. multicall executable (each utility is a separate static library)
2. individual utilities (still separate library with main wrapper)
To avoid namespace collision, each utility crate is defined as
"uu_{CMD}". The end user only sees the original utility name. This
simplifies build.rs.
Also, the thin wrapper for the main() function is no longer contained in
the crate. It has been separated into a dedicated file. This was
necessary to work around Cargo's need for the crate name attribute to
match the name in the respective Cargo.toml.
2015-12-07 21:56:45 -05:00
Joseph Crail
cbce549de7
More import fixes for Windows.
2015-12-01 01:27:20 -05:00
Michael Gehring
ca16e66a55
switch to cargo version numbers
2015-11-25 10:58:49 +01:00
Joseph Crail
ca1074201f
Split utility files into separate library.
...
Everything in src/common has been moved to src/uucore. This is defined
as a Cargo library, instead of directly included. This gives us
flexibility to make the library an external crate in the future.
Fixes #717 .
2015-11-24 22:20:27 -05:00
Nathan Ross
502957dc3e
use cargo idioms to manage dependency resolution and compilation
2015-11-23 02:04:15 -05:00
Carlos Liam
87d14978e9
Clean whitespace
...
Remove leading newlines and replace lines containing only whitespace
with empty lines
2015-10-06 12:04:46 -04:00
Michael Gehring
9d8abbcb06
Basic Cargo build
...
Builds the uutils multicall binary containing all utils (except stdbuf)
by default. To only build a subset
`cargo --no-default-features --features <utils>`
can be used.
Whats missing is building the standalone binaries and a mechanism to
automatically disable the build of unix only utils on windows.
2015-08-28 21:12:30 +02:00
Joseph Crail
e455ba5de1
Replace unstable set_file_times w/ external crate.
2015-08-11 21:45:11 -04:00
Joseph Crail
43d3834880
Backport and/or replace unstable features.
...
I removed the unstable slice_patterns and str_char features. I also used
the deprecated connect() method, instead of join().
2015-08-08 03:53:21 -04:00
Joseph Crail
4300cd5a48
Replace unstable init() method.
2015-07-31 16:21:06 -04:00
Joseph Crail
047d963a26
Remove unused feature attribute.
2015-07-31 16:21:06 -04:00
Joseph Crail
f03b22a65c
Stabilize several PathExt methods.
2015-07-31 16:21:06 -04:00
Joseph Crail
951be1bfaa
Fix alignment of mv help.
2015-07-01 22:09:33 -04:00
Joseph Crail
dd97629a0e
Merge pull request #640 from remram44/mv-strip-trailing-slashes
...
Implement mv's --strip-trailing-slashes
2015-06-30 23:31:03 -04:00
Remi Rampin
0ed57b3896
Fix simple typo in mv.rs
2015-06-30 15:21:40 -04:00
Remi Rampin
b8d5602655
Implement mv's --strip-trailing-slashes
2015-06-30 13:24:19 -04:00
Joseph Crail
690a483a8a
Update to nightly build.
...
I updated the library dependencies, features, and deprecated methods.
2015-06-23 23:00:00 -04:00
Joseph Crail
28e00cbd78
Standardize display of utility name and version.
2015-05-25 14:50:15 -04:00
Joseph Crail
496d5883a4
Switch to external getopts cargo (part 3).
...
I switched over to the getopts crate on crates.io, instead of Rust's
private implementation. This will allow coreutils to build for Rust 1.0.
I'm splitting the updates into several commits for easier reviewing.
2015-05-21 21:32:55 -04:00
Joseph Crail
18da32f394
Fix mv.
2015-05-13 21:05:36 -04:00
Joseph Crail
f502b187a7
Remove tail return statements.
2015-05-12 19:54:12 -04:00
Michael Gehring
bce3382fd2
Closure syntax
2015-03-08 19:06:04 +01:00
Michael Gehring
9ae9a48387
feature io -> old_io, path -> old_path
2015-02-22 13:59:12 +01:00
Michael Gehring
e7b647171f
os::set_exit_status(isize) -> env::set_exit_status(i32)
2015-02-22 13:59:12 +01:00
Michael Gehring
5e70473a2b
std::path -> std::old_path
2015-02-06 13:45:45 +01:00
Michael Gehring
3eb5a814a3
Fix most unstable feature warnings
2015-02-03 23:54:37 +01:00
Michael Gehring
d187dc574b
std::io -> std::old_io
2015-01-29 08:45:37 +01:00
Michael Gehring
4d6cbfa393
Disable unstable warnings for now
2015-01-10 20:44:56 +01:00
Michael Gehring
782fad4667
int/uint -> isize/usize
2015-01-10 20:40:37 +01:00
Michael Gehring
f2d49f4bb6
Make uumain return isize everywhere
2015-01-10 14:07:39 +01:00
Michael Gehring
074a58eafd
deriving is now called derive
2015-01-08 14:50:03 +01:00
Michael Gehring
1b381f49fa
Use new macro feature flags/attributes
2015-01-08 14:50:02 +01:00
Santiago Lapresta
d142168365
Fix deprecation warnings on latest nightlies
2014-12-25 19:55:32 +01:00
Arcterus
b8d67ea672
Update for latest Rust
2014-12-15 15:45:31 -08:00
Michael Gehring
842cc8b14c
Fix build with rust master
2014-12-11 07:51:37 +01:00
Arcterus
798a873b59
Fix build for latest Rust
2014-12-08 23:45:03 -08:00
Michael Gehring
fd2b464a6d
std::os changes
2014-11-19 21:58:16 +01:00
Michael Gehring
09f223fdb1
Update for new coercion rules
2014-11-19 21:58:16 +01:00
Michael Gehring
cd409c6d3f
Update for namespaced enums
2014-11-19 21:58:16 +01:00
Orvar Segerström
019abb993e
More mv tests and use cases
2014-10-30 08:47:26 +01:00
Orvar Segerström
beba02757e
MV implementation
...
Support for all commandline options except one, see src/mv/mv.rs
Many tests, included a todo list of more tests too, see tests/mv.rs
2014-10-26 11:27:28 +01:00
skv
9f20647984
move_util
2014-10-19 22:41:11 +04:00