1
0
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:
Hartmut Brandt 2004-07-21 09:39:53 +00:00
parent 2f2c1839f8
commit 44a5a59081
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132492
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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