From 8752a5661d9e4305f1507bdce919b37b2abbe729 Mon Sep 17 00:00:00 2001 From: Lyndon Nerenberg Date: Tue, 27 Jan 2015 15:07:19 -0800 Subject: [PATCH] 'mhparam bindir' now prints NMH's idea of $(bindir). --- config/config.c | 3 ++- man/mhparam.man | 1 + uip/mhparam.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/config.c b/config/config.c index a5cdfd9b..5c0591ca 100644 --- a/config/config.c +++ b/config/config.c @@ -143,8 +143,9 @@ char *nmhaccessftp = "nmh-access-ftp"; /* profile entry for external url access command */ char *nmhaccessurl = "nmh-access-url"; -char *mhlibexecdir = NMHLIBEXECDIR; +char *mhbindir = NMHBINDIR; char *mhetcdir = NMHETCDIR; +char *mhlibexecdir = NMHLIBEXECDIR; /* * nmh not-so constants diff --git a/man/mhparam.man b/man/mhparam.man index dfa5aacc..3df2a9ed 100644 --- a/man/mhparam.man +++ b/man/mhparam.man @@ -48,6 +48,7 @@ displayed and other arguments are ignored. can provide other information, such as the .B nmh version identifier, the locations of the nmh +.IR bindir , .I etcdir and .I libexecdir diff --git a/uip/mhparam.c b/uip/mhparam.c index acb416c7..4fe8c8d3 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -29,6 +29,7 @@ DEFINE_SWITCH_ENUM(MHPARAM); DEFINE_SWITCH_ARRAY(MHPARAM, switches); #undef X +extern char *mhbindir; extern char *mhetcdir; extern char *mhlibexecdir; @@ -104,6 +105,7 @@ static struct proc procs [] = { { "version", &version_num }, { "whatnowproc", &whatnowproc }, { "whomproc", &whomproc }, + { "bindir", &mhbindir }, { "etcdir", &mhetcdir }, { "libdir", &mhlibexecdir }, { "libexecdir", &mhlibexecdir }, -- 2.56.0