mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Allow the help file path and name to be overwritten by cc -D...
Also remove the current directory from the default help file path and add an appropriate directory in /usr/local instead.
This commit is contained in:
parent
2f2c1839f8
commit
44a5a59081
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132492
@ -8,6 +8,7 @@
|
||||
PROG= atmconfig
|
||||
SRCS= main.c diag.c natm.c
|
||||
MAN= atmconfig.8
|
||||
# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'
|
||||
|
||||
.if ${MACHINE_ARCH} == "arm"
|
||||
WARNS?= 3
|
||||
|
@ -42,8 +42,15 @@
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#define PATH_HELP ".:/usr/share/doc/atm"
|
||||
#ifndef PATH_HELP
|
||||
#define PATH_HELP "/usr/share/doc/atm:/usr/local/share/doc/atm"
|
||||
#endif
|
||||
#ifndef FILE_HELP
|
||||
#define FILE_HELP "atmconfig.help"
|
||||
#endif
|
||||
#ifndef FILE_HELP_OTHERS
|
||||
#define FILE_HELP_OTHERS "atmconfig_*.help"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Builtin commands
|
||||
|
Loading…
Reference in New Issue
Block a user