diff --git a/Cargo.toml b/Cargo.toml index 5be88ea6c..acd4ec209 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,7 @@ generic = [ "comm", "cp", "cut", + "dircolors", "dirname", "echo", "env", @@ -101,6 +102,7 @@ cksum = { optional=true, path="src/cksum" } comm = { optional=true, path="src/comm" } cp = { optional=true, path="src/cp" } cut = { optional=true, path="src/cut" } +dircolors= { optional=true, path="src/dircolors" } dirname = { optional=true, path="src/dirname" } du = { optional=true, path="src/du" } echo = { optional=true, path="src/echo" } diff --git a/Makefile b/Makefile index 185f1fbeb..dbf3db8c4 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ PROGS := \ comm \ cp \ cut \ + dircolors \ dirname \ echo \ env \ @@ -135,6 +136,7 @@ TEST_PROGS := \ comm \ cp \ cut \ + dircolors \ dirname \ echo \ env \ diff --git a/README.md b/README.md index f8ec53e11..c26b084bb 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,6 @@ To do - date - dd - df -- dircolors - expr (almost done, no regular expressions) - getlimits - install diff --git a/src/dircolors/Cargo.toml b/src/dircolors/Cargo.toml new file mode 100644 index 000000000..e5aff0373 --- /dev/null +++ b/src/dircolors/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "dircolors" +version = "0.0.1" +authors = [] + +[lib] +name = "uu_dircolors" +path = "dircolors.rs" + +[dependencies] +getopts = "*" +glob = "*" +libc = "*" +uucore = { path="../uucore" } + +[[bin]] +name = "dircolors" +path = "main.rs" diff --git a/src/dircolors/main.rs b/src/dircolors/main.rs new file mode 100644 index 000000000..ff64af3c5 --- /dev/null +++ b/src/dircolors/main.rs @@ -0,0 +1,5 @@ +extern crate uu_dircolors; + +fn main() { + std::process::exit(uu_dircolors::uumain(std::env::args().collect())); +}