From 74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 31 Oct 2009 18:59:50 +0100 Subject: nproc: A new program to count the available processors * AUTHORS: Add my name. * NEWS: Mention it. * README: Likewise. * bootstrap.conf (gnulib_modules): Add nproc. * doc/coreutils.texi (nproc invocation): Add nproc info. * man/Makefile.am (nproc.1): Add dependency. * man/nproc.x: New template. * man/.gitignore: Ignore generated man page. * po/POTFILES.in: Add src/nproc.c. * src/.gitignore: Exclude nproc. * src/Makefile.am (EXTRA_PROGRAMS): Add nproc. * src/nproc.c: New file. * tests/Makefile.am (TESTS): Add misc/nproc-{avail,positive}. * tests/misc/nproc-avail: New file. * tests/misc/nproc-positive: New file. --- man/.gitignore | 1 + man/Makefile.am | 1 + man/nproc.x | 4 ++++ 3 files changed, 6 insertions(+) create mode 100644 man/nproc.x (limited to 'man') diff --git a/man/.gitignore b/man/.gitignore index 1085ff055..2c2ffcdef 100644 --- a/man/.gitignore +++ b/man/.gitignore @@ -48,6 +48,7 @@ mv.1 nice.1 nl.1 nohup.1 +nproc.1 od.1 paste.1 pathchk.1 diff --git a/man/Makefile.am b/man/Makefile.am index b56db94fe..f1fca5c25 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -80,6 +80,7 @@ mv.1: $(common_dep) $(srcdir)/mv.x ../src/mv.c nice.1: $(common_dep) $(srcdir)/nice.x ../src/nice.c nl.1: $(common_dep) $(srcdir)/nl.x ../src/nl.c nohup.1: $(common_dep) $(srcdir)/nohup.x ../src/nohup.c +nproc.1: $(common_dep) $(srcdir)/nproc.x ../src/nproc.c od.1: $(common_dep) $(srcdir)/od.x ../src/od.c paste.1: $(common_dep) $(srcdir)/paste.x ../src/paste.c pathchk.1: $(common_dep) $(srcdir)/pathchk.x ../src/pathchk.c diff --git a/man/nproc.x b/man/nproc.x new file mode 100644 index 000000000..870d6bd45 --- /dev/null +++ b/man/nproc.x @@ -0,0 +1,4 @@ +[NAME] +nproc \- print the number of processing units available +[DESCRIPTION] +.\" Add any additional description here -- cgit v1.2.3-54-g00ecf