mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37: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 \
|
cksum \
|
||||||
cp \
|
cp \
|
||||||
cut \
|
cut \
|
||||||
env \
|
|
||||||
dirname \
|
dirname \
|
||||||
echo \
|
echo \
|
||||||
|
env \
|
||||||
factor \
|
factor \
|
||||||
false \
|
false \
|
||||||
fold \
|
fold \
|
||||||
|
@ -159,8 +159,8 @@ TEST_PROGS := \
|
||||||
true \
|
true \
|
||||||
truncate \
|
truncate \
|
||||||
tsort \
|
tsort \
|
||||||
unlink \
|
|
||||||
unexpand \
|
unexpand \
|
||||||
|
unlink \
|
||||||
wc
|
wc
|
||||||
|
|
||||||
TESTS := \
|
TESTS := \
|
||||||
|
@ -201,7 +201,7 @@ crates:
|
||||||
echo "okay" $(EXES)
|
echo "okay" $(EXES)
|
||||||
|
|
||||||
build_uutils = ${CARGO} build --features "${1}" ${PROFILE_CMD} --no-default-features
|
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_integration_tests = ${CARGO} test --test ${1}
|
||||||
run_unit_tests = ${CARGO} test -p ${1}
|
run_unit_tests = ${CARGO} test -p ${1}
|
||||||
do_install = install ${1}
|
do_install = install ${1}
|
||||||
|
@ -213,8 +213,8 @@ test:
|
||||||
$(foreach util, ${TESTS}, $(call run_unit_tests, ${util});)
|
$(foreach util, ${TESTS}, $(call run_unit_tests, ${util});)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(call build_uutils,${EXES})
|
$(call build_uutils, ${EXES})
|
||||||
$(foreach util, ${EXES}, $(call build_pkg,${util});)
|
$(foreach util, ${EXES}, $(call build_pkg, ${util});)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -rf $(BUILDDIR)
|
$(RM) -rf $(BUILDDIR)
|
||||||
|
|
|
@ -27,6 +27,7 @@ use std::io::Write;
|
||||||
use std::net::ToSocketAddrs;
|
use std::net::ToSocketAddrs;
|
||||||
|
|
||||||
static NAME: &'static str = "hostname";
|
static NAME: &'static str = "hostname";
|
||||||
|
static VERSION: &'static str = "1.0.0";
|
||||||
|
|
||||||
extern {
|
extern {
|
||||||
fn gethostname(name: *mut libc::c_char, namelen: libc::size_t) -> libc::c_int;
|
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() {
|
fn version() {
|
||||||
println!("hostname 1.0.0");
|
println!("{} {}", NAME, VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn help_menu(program: &str, options: Options) {
|
fn help_menu(program: &str, options: Options) {
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
pub mod common;
|
|
Loading…
Add table
Add a link
Reference in a new issue