Sort options.

This commit is contained in:
wiz 2005-12-12 22:49:37 +00:00
parent 4da531101e
commit dbaaaf27a8
2 changed files with 10 additions and 9 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mkdep.1,v 1.13 2005/12/12 22:05:28 dsl Exp $
.\" $NetBSD: mkdep.1,v 1.14 2005/12/12 22:49:37 wiz Exp $
.\"
.\" Copyright (c) 1987, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@ -37,7 +37,7 @@
.Nd construct Makefile dependency list
.Sh SYNOPSIS
.Nm
.Op Fl adDopq
.Op Fl aDdopq
.Op Fl f Ar file
.Op Fl s Ar suffixes
.Li --
@ -67,13 +67,14 @@ Append to the output file,
so that multiple
.Nm Ns 's
may be run from a single Makefile.
.It Fl d
Post process and merge previously created (for example by 'cc -MD x.c') depend
files into a single file.
.It Fl D
Post process (as
.Fl d )
but read the list of filenames from stdin.
.It Fl d
Post process and merge previously created (for example by
.Dq cc -MD x.c )
depend files into a single file.
.It Fl f
Write the include file dependencies to
.Ar file ,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mkdep.c,v 1.25 2005/12/12 22:05:28 dsl Exp $ */
/* $NetBSD: mkdep.c,v 1.26 2005/12/12 22:49:37 wiz Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -44,7 +44,7 @@
#if !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
All rights reserved.\n");
__RCSID("$NetBSD: mkdep.c,v 1.25 2005/12/12 22:05:28 dsl Exp $");
__RCSID("$NetBSD: mkdep.c,v 1.26 2005/12/12 22:49:37 wiz Exp $");
#endif /* not lint */
#include <sys/mman.h>
@ -98,7 +98,7 @@ static void
usage(void)
{
(void)fprintf(stderr,
"usage: %s [-adDopq] [-f file] [-s suffixes] -- [flags] file ...\n",
"usage: %s [-aDdopq] [-f file] [-s suffixes] -- [flags] file ...\n",
getprogname());
exit(EXIT_FAILURE);
}
@ -217,7 +217,7 @@ main(int argc, char **argv)
opterr = 0; /* stop getopt() bleating about errors. */
for (;;) {
ok_ind = optind;
ch = getopt(argc, argv, "adDf:opqs:");
ch = getopt(argc, argv, "aDdf:opqs:");
switch (ch) {
case -1:
ok_ind = optind;