Commit graph

37 commits

Author SHA1 Message Date
Michael Gehring
30bba07f9c always build multicall binary
squashed:
	a2c6b27 - build: automatically generate main() files
	c942f0f - remove MULTICALL=1 build from travis
	cb7b35b - make: remove unnecessary shell command
	69bbb31 - update README
	03a3168 - all: move main() into separate file that links against util crate
	8276384 - make: always build multicall binary
	aa4edeb - make: avoid 'rustc --crate-file-name'
2014-06-26 10:26:16 +02:00
Michael Gehring
96c32a70a5 remove use of deprecated to_err_msg 2014-06-15 12:51:03 +02:00
Brian Anderson
107c2d4c62 phase(syntax) -> phase(plugin) 2014-06-11 21:48:38 -07:00
Brian Anderson
bad19f6016 Remove tail return statements.
Per review feedback.
2014-06-11 21:48:38 -07:00
Brian Anderson
0ee4fb0576 Handle exit status more consistently. #211
This changes the `uumain` functions to return the exit code as `int`.

It does not eliminate all calls to `os::set_exit_status` and `libc::exit`.
2014-06-11 21:48:38 -07:00
Brian Anderson
2bf64159e0 Update to nightly 2014-06-02 14:07:53 -07:00
Michael Gehring
448f4d6d70 remove remaining uses of ~[T] 2014-05-30 10:40:36 +02:00
Michael Gehring
1bac39d509 silence dead code warnings in multicall build 2014-05-29 08:58:06 +02:00
Michael Gehring
13f01e4c11 add uutils multicall binary 2014-05-28 14:22:52 +02:00
Michael Gehring
46b9d6d78e Remove the now unnecessary conversion of os::args() ret val. 2014-05-23 14:35:58 +02:00
Michael Gehring
0ce3f0f4e1 Adapt to removal of ~str from libstd. 2014-05-23 14:28:40 +02:00
Michael Gehring
577e4baef9 Update for getopts changes 2014-05-17 12:32:14 +02:00
Michael Gehring
ce05187dac base64: simplify ignore_garbage 2014-05-16 11:18:32 +02:00
Michael Gehring
93f7220a40 from_base64 returns Vec<u8> now 2014-05-16 11:18:32 +02:00
Michael Gehring
4b9c8279ce os::args returns Vec<~str> now 2014-05-16 11:17:23 +02:00
Michael Gehring
7a06ae081d Update to box/Box<T> syntax. 2014-05-09 03:04:58 +02:00
Arcterus
366c388d3f Update for latest Rust 2014-05-06 23:25:49 -07:00
Jordy Dickinson
8705d95ae9 Update base64 to latest rust 2014-04-25 13:38:09 -04:00
petejodo
27ed81322c Fixed most issues caused by libc being moved from std to it's own crate.
I just did a quick pass and fixed a majority of the simple issues but
there are still some problems with the following utils:
  id
  md5sum
  tee
  uptime
  users
  whoami
2014-04-07 18:43:34 -04:00
Arcterus
e898d37736 Update for latest Rust 2014-03-31 09:40:21 -07:00
Alan Andrade
10d7a0cc9c Fix master by using Vec and adjusting 2014-03-22 02:17:27 -07:00
Dawid Ciężarkiewicz
49f3f0ea32 Fix compilation for latest rustc.
Some warning are still there.

(cherry picked from commit 5c690b33d6)

Conflicts:
	cp/cp.rs
2014-03-19 11:38:32 -07:00
Alan Andrade
de21ff4c2f Move util.rs to common 2014-02-23 22:50:34 -08:00
Arcterus
47ddd7d4f2 Update for latest Rust and fixed up id for Linux 2014-02-16 13:29:31 -08:00
Arcterus
0c60bda074 Fix for latest Rust 2014-02-14 20:50:03 -08:00
Arcterus
74df4d5a98 Fix programs for latest Rust and begin usage of new utility macros 2014-02-06 22:39:07 -08:00
Arcterus
384d710790 Update most utilities for latest Rust 2014-02-04 19:39:17 -08:00
Jordy Dickinson
492b35f629 Fix base64 due to from_utf8 and replace changes
These two changes were made in rust's std lib:
    1. `str::replace` was a method of str, now it's a function.
    2. `from_utf8` now wraps its return value in Option.
2014-01-24 12:30:03 -05:00
nuts
0b7edc6d80 base64/base64.rs: Fix build error with rust-0.10 2014-01-21 20:00:01 +01:00
Heather
1a4cc9c881 trying to update base64 for print changes 2014-01-13 13:55:04 +04:00
Jordi Boggiano
01d426af01 Minor code reformatings and adding missing arg shortcuts 2014-01-07 01:35:24 +01:00
Jordy Dickinson
54dc1e9aca Use same crate_id form as other utils 2013-12-27 17:01:55 -05:00
Jordy Dickinson
a71df867bb Remove Conf struct; put option handling in main
This is more consistent with the other utilities, and probably less
confusing.
2013-12-27 11:30:49 -05:00
Jordy Dickinson
af57ee71db link -> crate_id; link is deprecated 2013-12-26 13:55:55 -05:00
Jordy Dickinson
9cfb0645e8 Use line continuations instead of string addition
I didn't know that line continuations stripped preceding whitespace
2013-12-20 22:27:49 -05:00
Jordy Dickinson
d63c268239 base64: Improve error handling 2013-12-20 16:15:27 -05:00
Jordy Dickinson
56f4c1e273 Implement base64, resolves issue #42 2013-12-20 14:34:45 -05:00