From: Lyndon Nerenberg Date: Tue, 27 Jan 2015 23:07:19 +0000 (-0800) Subject: 'mhparam bindir' now prints NMH's idea of $(bindir). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8752a5661d9e4305f1507bdce919b37b2abbe729 'mhparam bindir' now prints NMH's idea of $(bindir). --- 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 },