mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Move util.rs to common
This commit is contained in:
parent
26c5d7e245
commit
de21ff4c2f
18 changed files with 17 additions and 17 deletions
|
@ -28,7 +28,7 @@ use getopts::{
|
|||
use serialize::base64;
|
||||
use serialize::base64::{FromBase64, ToBase64};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "base64";
|
||||
|
|
|
@ -18,7 +18,7 @@ use std::os;
|
|||
use std::str;
|
||||
use std::str::StrSlice;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "basename";
|
||||
|
|
2
du/du.rs
2
du/du.rs
|
@ -23,7 +23,7 @@ use std::path::Path;
|
|||
use time::Timespec;
|
||||
use sync::{Arc, Future};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "du";
|
||||
|
|
|
@ -17,7 +17,7 @@ use std::os;
|
|||
use std::io::{print, println};
|
||||
use std::uint;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "echo";
|
||||
|
|
|
@ -18,7 +18,7 @@ use std::os;
|
|||
use std::io::fs;
|
||||
use std::num::strconv;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "mkdir";
|
||||
|
|
|
@ -19,7 +19,7 @@ extern crate getopts;
|
|||
use std::os;
|
||||
use std::io::print;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "printenv";
|
||||
|
|
|
@ -17,7 +17,7 @@ extern crate getopts;
|
|||
use std::os;
|
||||
use std::io::print;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "pwd";
|
||||
|
|
2
rm/rm.rs
2
rm/rm.rs
|
@ -17,7 +17,7 @@ extern crate getopts;
|
|||
use std::os;
|
||||
use std::io::{print, stdin, stdio, fs, BufferedReader};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
@ -17,7 +17,7 @@ extern crate getopts;
|
|||
use std::os;
|
||||
use std::io::{print, fs};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "rmdir";
|
||||
|
|
|
@ -11,7 +11,7 @@ extern crate getopts;
|
|||
use std::os;
|
||||
use std::cmp::max;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "seq";
|
||||
|
|
|
@ -19,7 +19,7 @@ use std::cast;
|
|||
use std::os;
|
||||
use std::io::{print, timer};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "sleep";
|
||||
|
|
|
@ -18,7 +18,7 @@ use std::io::{File, Open, ReadWrite, fs};
|
|||
use std::os;
|
||||
use std::u64;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
macro_rules! get_file_size(
|
||||
|
|
|
@ -24,7 +24,7 @@ use std::io::println;
|
|||
use std::io::stdio::stderr;
|
||||
use getopts::{optflag,getopts};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
extern {
|
||||
|
|
|
@ -27,7 +27,7 @@ use std::ptr;
|
|||
use std::str;
|
||||
use utmpx::*;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
|
|
2
wc/wc.rs
2
wc/wc.rs
|
@ -19,7 +19,7 @@ use std::str::from_utf8;
|
|||
use std::io::{print, stdin, File, BufferedReader};
|
||||
use getopts::Matches;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
struct Result {
|
||||
|
|
|
@ -23,7 +23,7 @@ use std::os;
|
|||
use std::str;
|
||||
use std::libc;
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
struct c_passwd {
|
||||
|
|
|
@ -19,7 +19,7 @@ extern crate getopts;
|
|||
use std::os;
|
||||
use std::io::{print, println};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
||||
static NAME: &'static str = "yes";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue