diff --git a/fmt/fmt.rs b/fmt/fmt.rs index 206b89f26..b8e308101 100644 --- a/fmt/fmt.rs +++ b/fmt/fmt.rs @@ -59,7 +59,7 @@ struct FmtOptions { #[allow(dead_code)] fn main() { os::set_exit_status(uumain(os::args())) } -fn uumain(args: Vec) -> int { +pub fn uumain(args: Vec) -> int { let opts = [ getopts::optflag("c", "crown-margin", "First and second line of paragraph may have different indentations, in which case the first line's indentation is preserved, and each subsequent line's indentation matches the second line."), diff --git a/sync/sync.rs b/sync/sync.rs index 53f91dc63..6b71538a9 100644 --- a/sync/sync.rs +++ b/sync/sync.rs @@ -1,4 +1,4 @@ -#![crate_id(name="sync", vers="1.0.0", author="Alexander Fomin")] +#![crate_id = "uusync#1.0.0"] /* * This file is part of the uutils coreutils package. * diff --git a/uutils/uutils.rs b/uutils/uutils.rs index b94aae27d..903ba2866 100644 --- a/uutils/uutils.rs +++ b/uutils/uutils.rs @@ -42,7 +42,7 @@ extern crate rmdir; extern crate seq; extern crate sleep; extern crate sum; -extern crate sync; +extern crate uusync; extern crate tac; extern crate tail; extern crate tee; @@ -101,7 +101,7 @@ fn util_map() -> HashMap<&str, fn(Vec) -> int> { map.insert("seq", seq::uumain); map.insert("sleep", sleep::uumain); map.insert("sum", sum::uumain); - map.insert("sync", sync::uumain); + map.insert("sync", uusync::uumain); map.insert("tac", tac::uumain); map.insert("tail", tail::uumain); map.insert("tee", tee::uumain);