Importing usr.bin/machine

Change-Id: I7dd97073e94cbb75fdac7f15c73437c8ce44a606
This commit is contained in:
Thomas Cort 2013-09-28 12:37:57 -04:00 committed by Gerrit Code Review
parent 79cc8b683f
commit b50dbb4d24
6 changed files with 67 additions and 1 deletions

View File

@ -383,6 +383,7 @@
./usr/bin/lzma minix-sys
./usr/bin/lzmainfo minix-sys
./usr/bin/m4 minix-sys
./usr/bin/machine minix-sys
./usr/bin/mail minix-sys
./usr/bin/make minix-sys
./usr/bin/MAKEDEV minix-sys
@ -1948,6 +1949,7 @@
./usr/man/man1/lzma.1 minix-sys
./usr/man/man1/lzmainfo.1 minix-sys
./usr/man/man1/m4.1 minix-sys
./usr/man/man1/machine.1 minix-sys
./usr/man/man1/mail.1 minix-sys
./usr/man/man1/make.1 minix-sys
./usr/man/man1/makeinfo.1 minix-sys

View File

@ -170,6 +170,7 @@
2013/05/30 12:00:00,usr.bin/logname
2012/10/17 12:00:00,usr.bin/lorder
2012/10/17 12:00:00,usr.bin/m4
2013/09/27 12:00:00,usr.bin/machine
2012/10/17 12:00:00,usr.bin/make
2012/10/17 12:00:00,usr.bin/Makefile
2012/10/17 12:00:00,usr.bin/Makefile.inc

View File

@ -15,7 +15,7 @@ SUBDIR= \
head indent infocmp join \
ldd \
login logname lorder m4 \
make man \
machine make man \
mkdep mktemp \
\
nbperf newgrp nvi \

7
usr.bin/machine/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.4 1999/07/30 02:07:15 hubertf Exp $
# from: @(#)Makefile 5.3 (Berkeley) 5/11/90
MAN= machine.1
SCRIPTS= machine.sh
.include <bsd.prog.mk>

54
usr.bin/machine/machine.1 Normal file
View File

@ -0,0 +1,54 @@
.\" $NetBSD: machine.1,v 1.7 2003/08/07 11:14:34 agc Exp $
.\"
.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" from: @(#)machine.1 5.5 (Berkeley) 7/26/91
.\" $NetBSD: machine.1,v 1.7 2003/08/07 11:14:34 agc Exp $
.\"
.Dd May 24, 2003
.Dt MACHINE 1
.Os
.Sh NAME
.Nm machine
.Nd print machine type
.Sh SYNOPSIS
.Nm
.Sh DESCRIPTION
The
.Nm
command displays the machine type.
It is equivalent to
.Ql uname -m .
.Sh SEE ALSO
.Xr make 1 ,
.Xr uname 1
.Sh HISTORY
A
.Nm
command appeared in
.Bx 4.3 reno .

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/uname -m