1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

Merge pull request #639 from jbcrail/update-nightly

Update to nightly build.
This commit is contained in:
Heather 2015-06-24 08:11:44 +03:00
commit e7685e6fe9
19 changed files with 42 additions and 33 deletions

8
deps/Cargo.toml vendored
View file

@ -6,12 +6,12 @@ version = "0.0.0"
name = "null"
[dependencies]
libc = "0.1.7"
libc = "0.1.8"
getopts = "0.2.11"
num_cpus = "*"
rand = "0.3.8"
regex = "0.1.33"
regex = "0.1.38"
rust-crypto = "0.2.31"
rustc-serialize = "0.3.13"
time = "0.1.25"
rustc-serialize = "0.3.15"
time = "0.1.26"
unicode-width = "0.1.1"

View file

@ -12,8 +12,10 @@
#![allow(unused_variables)] // only necessary while the TODOs still exist
extern crate aho_corasick;
extern crate getopts;
extern crate libc;
extern crate memchr;
extern crate regex;
extern crate regex_syntax;

View file

@ -1 +1 @@
DEPLIBS += regex regex-syntax
DEPLIBS += aho-corasick memchr regex regex-syntax

View file

@ -1,5 +1,5 @@
#![crate_name = "cut"]
#![feature(collections, path_ext)]
#![feature(path_ext, slice_position_elem)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "du"]
#![feature(fs_time, metadata_ext, std_misc)]
#![feature(future)]
/*
* This file is part of the uutils coreutils package.
@ -57,11 +57,11 @@ impl Stat {
path: path.clone(),
is_dir: metadata.is_dir(),
size: metadata.len(),
blocks: metadata.as_raw().blocks() as u64,
nlink: metadata.as_raw().nlink() as u64,
created: metadata.modified(),
accessed: metadata.accessed(),
modified: metadata.modified()
blocks: metadata.blocks() as u64,
nlink: metadata.nlink() as u64,
created: metadata.mtime() as u64,
accessed: metadata.atime() as u64,
modified: metadata.mtime() as u64
}
}
}

View file

@ -1,5 +1,5 @@
#![crate_name = "fmt"]
#![feature(core, str_char, unicode)]
#![feature(iter_cmp, str_char, unicode)]
/*
* This file is part of `fmt` from the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "fold"]
#![feature(collections)]
#![feature(slice_chars)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "hostname"]
#![feature(collections)]
#![feature(slice_extras)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "mv"]
#![feature(collections, fs_time, path_ext, slice_patterns, str_char)]
#![feature(path_ext, slice_extras, slice_patterns, str_char)]
#![allow(deprecated)]
/*
@ -17,6 +17,7 @@ extern crate libc;
use std::fs::{self, PathExt};
use std::io::{BufRead, BufReader, Result, stdin, Write};
use std::os::unix::fs::MetadataExt;
use std::path::PathBuf;
#[path = "../common/util.rs"]
@ -287,7 +288,7 @@ fn rename(from: &PathBuf, to: &PathBuf, b: &Behaviour) -> Result<()> {
}
if b.update {
if try!(fs::metadata(from)).modified() <= try!(fs::metadata(to)).modified() {
if try!(fs::metadata(from)).mtime() <= try!(fs::metadata(to)).mtime() {
return Ok(());
}
}

View file

@ -1 +1 @@
DEPLIBS += regex regex-syntax
DEPLIBS += aho-corasick memchr regex regex-syntax

View file

@ -11,11 +11,11 @@ fn parse_style(chars: &[char]) -> Result<::NumberingStyle, String> {
let s: String = rest.iter().map(|c| *c).collect();
match regex::Regex::new(&s) {
Ok(re) => Ok(::NumberingStyle::NumberForRegularExpression(re)),
Err(_) => Err(String::from_str("Illegal regular expression")),
Err(_) => Err(String::from("Illegal regular expression")),
}
}
_ => {
Err(String::from_str("Illegal style encountered"))
Err(String::from("Illegal style encountered"))
},
}
}
@ -36,7 +36,7 @@ pub fn parse_options(settings: &mut ::Settings, opts: &getopts::Matches) -> Vec<
"ln" => { settings.number_format = ::NumberFormat::Left; },
"rn" => { settings.number_format = ::NumberFormat::Right; },
"rz" => { settings.number_format = ::NumberFormat::RightZero; },
_ => { errs.push(String::from_str("Illegal value for -n")); },
_ => { errs.push(String::from("Illegal value for -n")); },
}
}
match opts.opt_str("b") {
@ -75,7 +75,7 @@ pub fn parse_options(settings: &mut ::Settings, opts: &getopts::Matches) -> Vec<
let conv: Option<u64> = val.parse().ok();
match conv {
None => {
errs.push(String::from_str("Illegal value for -i"));
errs.push(String::from("Illegal value for -i"));
}
Some(num) => { settings.line_increment = num }
}
@ -87,7 +87,7 @@ pub fn parse_options(settings: &mut ::Settings, opts: &getopts::Matches) -> Vec<
let conv: Option<usize> = val.parse().ok();
match conv {
None => {
errs.push(String::from_str("Illegal value for -w"));
errs.push(String::from("Illegal value for -w"));
}
Some(num) => { settings.number_width = num }
}
@ -99,7 +99,7 @@ pub fn parse_options(settings: &mut ::Settings, opts: &getopts::Matches) -> Vec<
let conv: Option<u64> = val.parse().ok();
match conv {
None => {
errs.push(String::from_str("Illegal value for -v"));
errs.push(String::from("Illegal value for -v"));
}
Some(num) => { settings.starting_line_number = num }
}
@ -111,7 +111,7 @@ pub fn parse_options(settings: &mut ::Settings, opts: &getopts::Matches) -> Vec<
let conv: Option<u64> = val.parse().ok();
match conv {
None => {
errs.push(String::from_str("Illegal value for -l"));
errs.push(String::from("Illegal value for -l"));
}
Some(num) => { settings.join_blank_lines = num }
}

View file

@ -1,5 +1,5 @@
#![crate_name = "nl"]
#![feature(collections, slice_patterns)]
#![feature(slice_patterns)]
/*
* This file is part of the uutils coreutils package.
@ -11,7 +11,9 @@
*
*/
extern crate aho_corasick;
extern crate getopts;
extern crate memchr;
extern crate regex_syntax;
extern crate regex;
@ -102,7 +104,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
number_width: 6,
number_format: NumberFormat::Right,
renumber: true,
number_separator: String::from_str("\t"),
number_separator: String::from("\t"),
};
let given_options = match opts.parse(&args[1..]) {

View file

@ -1 +1 @@
DEPLIBS += regex regex-syntax
DEPLIBS += aho-corasick memchr regex regex-syntax

View file

@ -1,5 +1,5 @@
#![crate_name = "ptx"]
#![feature(convert, collections)]
#![feature(convert, slice_chars, vec_push_all)]
/*
* This file is part of the uutils coreutils package.
@ -9,7 +9,10 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
extern crate aho_corasick;
extern crate getopts;
extern crate memchr;
extern crate regex_syntax;
extern crate regex;

View file

@ -1,5 +1,4 @@
#![crate_name = "readlink"]
#![feature(file_type)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name= "realpath"]
#![feature(file_type, path_ext)]
#![feature(path_ext)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "rm"]
#![feature(file_type, dir_entry_ext, path_ext)]
#![feature(path_ext)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1 +1 @@
DEPLIBS += rand regex regex-syntax
DEPLIBS += aho-corasick memchr rand regex regex-syntax

View file

@ -1,4 +1,6 @@
extern crate libc;
extern crate memchr;
extern crate aho_corasick;
extern crate rand;
extern crate regex_syntax;
extern crate regex;