summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2009-10-31 18:59:50 +0100
committerPádraig Brady <P@draigBrady.com>2009-11-06 16:54:12 +0000
commit74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f (patch)
tree226d1f3f872b413e09000e67bd8f20c5ffab6136 /man
parent41456fac8ae69789b04196cb09788e1711b31cb3 (diff)
downloadcoreutils-74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f.tar.xz
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.
Diffstat (limited to 'man')
-rw-r--r--man/.gitignore1
-rw-r--r--man/Makefile.am1
-rw-r--r--man/nproc.x4
3 files changed, 6 insertions, 0 deletions
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