summaryrefslogtreecommitdiffstats
path: root/sbin/atm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-07-21 09:39:53 +0000
committerharti <harti@FreeBSD.org>2004-07-21 09:39:53 +0000
commit156a2124eb5f4735895fb75ec05d5612915046df (patch)
tree2ef3e5a8b8b8ca74f686445c840e187cc51d9f25 /sbin/atm
parent76b88b18435930ad591732274418d7151eb57230 (diff)
downloadFreeBSD-src-156a2124eb5f4735895fb75ec05d5612915046df.zip
FreeBSD-src-156a2124eb5f4735895fb75ec05d5612915046df.tar.gz
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.
Diffstat (limited to 'sbin/atm')
-rw-r--r--sbin/atm/atmconfig/Makefile1
-rw-r--r--sbin/atm/atmconfig/private.h9
2 files changed, 9 insertions, 1 deletions
diff --git a/sbin/atm/atmconfig/Makefile b/sbin/atm/atmconfig/Makefile
index 40134fc..8317b82 100644
--- a/sbin/atm/atmconfig/Makefile
+++ b/sbin/atm/atmconfig/Makefile
@@ -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
diff --git a/sbin/atm/atmconfig/private.h b/sbin/atm/atmconfig/private.h
index 4b16060..7677d6b 100644
--- a/sbin/atm/atmconfig/private.h
+++ b/sbin/atm/atmconfig/private.h
@@ -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
OpenPOWER on IntegriCloud