Merge pull request #725 from ebfe/versions

Switch to cargo version numbers
This commit is contained in:
Heather
2015-11-25 14:21:16 +04:00
70 changed files with 71 additions and 71 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ enum Mode {
}
static NAME: &'static str = "base64";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub type FileOrStdReader = BufReader<Box<Read+'static>>;
+1 -1
View File
@@ -20,7 +20,7 @@ use std::io::Write;
use std::path::{is_separator, PathBuf};
static NAME: &'static str = "basename";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
//
+1 -1
View File
@@ -25,7 +25,7 @@ use std::intrinsics::{copy_nonoverlapping};
use std::io::{stdout, stdin, stderr, Write, Read, Result};
static NAME: &'static str = "cat";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
let mut opts = Options::new();
+1 -1
View File
@@ -32,7 +32,7 @@ use uucore::fs::UUPathExt;
use walker::Walker;
const NAME: &'static str = "chmod";
const VERSION: &'static str = "1.0.0";
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
let mut opts = Options::new();
+1 -1
View File
@@ -40,7 +40,7 @@ extern {
}
static NAME: &'static str = "chroot";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
let mut opts = Options::new();
+1 -1
View File
@@ -25,7 +25,7 @@ use crc_table::CRC_TABLE;
mod crc_table;
static NAME: &'static str = "cksum";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
#[inline]
fn crc_update(crc: u32, input: u8) -> u32 {
+1 -1
View File
@@ -18,7 +18,7 @@ use std::io::{self, BufRead, BufReader, Read, stdin, Stdin};
use std::path::Path;
static NAME: &'static str = "comm";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
fn mkdelim(col: usize, opts: &getopts::Matches) -> String {
let mut s = String::new();
+1 -1
View File
@@ -28,7 +28,7 @@ pub enum Mode {
}
static NAME: &'static str = "cp";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
let mut opts = Options::new();
+1 -1
View File
@@ -28,7 +28,7 @@ mod ranges;
mod searcher;
static NAME: &'static str = "cut";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
struct Options {
out_delim: Option<String>,
+1 -1
View File
@@ -14,7 +14,7 @@ extern crate getopts;
use std::path::Path;
static NAME: &'static str = "dirname";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
let mut opts = getopts::Options::new();
+1 -1
View File
@@ -28,7 +28,7 @@ use std::sync::mpsc::channel;
use std::thread;
static NAME: &'static str = "du";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
struct Options {
all: bool,
+1 -1
View File
@@ -20,7 +20,7 @@ use std::str::from_utf8;
#[allow(dead_code)]
static NAME: &'static str = "echo";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
#[derive(Clone)]
struct EchoOptions {
+1 -1
View File
@@ -21,7 +21,7 @@ use std::io::Write;
use std::process::Command;
static NAME: &'static str = "env";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
struct options {
ignore_env: bool,
+1 -1
View File
@@ -28,7 +28,7 @@ use rustc_unicode::str::utf8_char_width;
use unicode_width::UnicodeWidthChar;
static NAME: &'static str = "expand";
static VERSION: &'static str = "0.0.1";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
static DEFAULT_TABSTOP: usize = 8;
+1 -1
View File
@@ -21,7 +21,7 @@ mod syntax_tree;
use std::io::{Write};
static NAME: &'static str = "expr";
static VERSION: &'static str = "0.0.1";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
// For expr utility we do not want getopts.
+1 -1
View File
@@ -33,7 +33,7 @@ mod numeric;
mod prime_table;
static NAME: &'static str = "factor";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
fn rho_pollard_pseudorandom_function(x: u64, a: u64, b: u64, num: u64) -> u64 {
if num < 1 << 63 {
+1 -1
View File
@@ -38,7 +38,7 @@ mod parasplit;
// program's NAME and VERSION are used for -V and -h
static NAME: &'static str = "fmt";
static VERSION: &'static str = "0.0.3";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub type FileOrStdReader = BufReader<Box<Read+'static>>;
pub struct FmtOptions {
+1 -1
View File
@@ -20,7 +20,7 @@ use std::io::{BufRead, BufReader, Read, stdin, Write};
use std::path::Path;
static NAME: &'static str = "fold";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
let (args, obs_width) = handle_obsolete(&args[..]);
+1 -1
View File
@@ -19,7 +19,7 @@ use std::io::Write;
use uucore::c_types::{get_pw_from_args, group};
static NAME: &'static str = "groups";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub fn uumain(args: Vec<String>) -> i32 {
let mut opts = getopts::Options::new();
+1 -1
View File
@@ -30,7 +30,7 @@ use std::io::{self, BufRead, BufReader, Read, stdin, Write};
use std::path::Path;
static NAME: &'static str = "hashsum";
static VERSION: &'static str = "1.0.0";
static VERSION: &'static str = env!("CARGO_PKG_VERSION");
fn is_custom_binary(program: &str) -> bool {
match program {

Some files were not shown because too many files have changed in this diff Show More