mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #723 from jbcrail/cleanup
Fix whitespace, unused file, and warnings.
This commit is contained in:
commit
9365e100d9
3 changed files with 7 additions and 7 deletions
10
Makefile
10
Makefile
|
@ -127,9 +127,9 @@ TEST_PROGS := \
|
|||
cksum \
|
||||
cp \
|
||||
cut \
|
||||
env \
|
||||
dirname \
|
||||
echo \
|
||||
env \
|
||||
factor \
|
||||
false \
|
||||
fold \
|
||||
|
@ -159,8 +159,8 @@ TEST_PROGS := \
|
|||
true \
|
||||
truncate \
|
||||
tsort \
|
||||
unlink \
|
||||
unexpand \
|
||||
unlink \
|
||||
wc
|
||||
|
||||
TESTS := \
|
||||
|
@ -201,7 +201,7 @@ crates:
|
|||
echo "okay" $(EXES)
|
||||
|
||||
build_uutils = ${CARGO} build --features "${1}" ${PROFILE_CMD} --no-default-features
|
||||
build_pkg = ${CARGO} build ${PROFILE_CMD} -p "${1}"
|
||||
build_pkg = ${CARGO} build ${PROFILE_CMD} -p ${1}
|
||||
run_integration_tests = ${CARGO} test --test ${1}
|
||||
run_unit_tests = ${CARGO} test -p ${1}
|
||||
do_install = install ${1}
|
||||
|
@ -213,8 +213,8 @@ test:
|
|||
$(foreach util, ${TESTS}, $(call run_unit_tests, ${util});)
|
||||
|
||||
build:
|
||||
$(call build_uutils,${EXES})
|
||||
$(foreach util, ${EXES}, $(call build_pkg,${util});)
|
||||
$(call build_uutils, ${EXES})
|
||||
$(foreach util, ${EXES}, $(call build_pkg, ${util});)
|
||||
|
||||
clean:
|
||||
$(RM) -rf $(BUILDDIR)
|
||||
|
|
|
@ -27,6 +27,7 @@ use std::io::Write;
|
|||
use std::net::ToSocketAddrs;
|
||||
|
||||
static NAME: &'static str = "hostname";
|
||||
static VERSION: &'static str = "1.0.0";
|
||||
|
||||
extern {
|
||||
fn gethostname(name: *mut libc::c_char, namelen: libc::size_t) -> libc::c_int;
|
||||
|
@ -119,7 +120,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
|||
}
|
||||
|
||||
fn version() {
|
||||
println!("hostname 1.0.0");
|
||||
println!("{} {}", NAME, VERSION);
|
||||
}
|
||||
|
||||
fn help_menu(program: &str, options: Options) {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
pub mod common;
|
Loading…
Add table
Add a link
Reference in a new issue