mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 02:20:51 +01:00
Add an option to tell what version of config(8) this is.
This commit is contained in:
parent
7e2b43eeb3
commit
71d8a448ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148916
@ -36,7 +36,7 @@
|
||||
.Nd build system configuration files
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl gp
|
||||
.Op Fl Vgp
|
||||
.Op Fl d Ar destdir
|
||||
.Ar SYSTEM_NAME
|
||||
.Sh DESCRIPTION
|
||||
@ -72,6 +72,10 @@ section below).
|
||||
.Pp
|
||||
Available options and operands:
|
||||
.Bl -tag -width ".Ar SYSTEM_NAME"
|
||||
.It Fl V
|
||||
Print the
|
||||
.Nm
|
||||
version number.
|
||||
.It Fl d Ar destdir
|
||||
Use
|
||||
.Ar destdir
|
||||
|
@ -54,6 +54,7 @@ static const char rcsid[] =
|
||||
#include <dirent.h>
|
||||
#include "y.tab.h"
|
||||
#include "config.h"
|
||||
#include "configvers.h"
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE (1)
|
||||
@ -95,8 +96,11 @@ main(int argc, char **argv)
|
||||
char *p;
|
||||
char xxx[MAXPATHLEN];
|
||||
|
||||
while ((ch = getopt(argc, argv, "d:gp")) != -1)
|
||||
while ((ch = getopt(argc, argv, "d:gpV")) != -1)
|
||||
switch (ch) {
|
||||
case 'V':
|
||||
printf("%d\n", CONFIGVERS);
|
||||
exit(0);
|
||||
case 'd':
|
||||
if (*destdir == '\0')
|
||||
strlcpy(destdir, optarg, sizeof(destdir));
|
||||
|
Loading…
Reference in New Issue
Block a user