]> diplodocus.org Git - nmh/commitdiff
'mhparam bindir' now prints NMH's idea of $(bindir).
authorLyndon Nerenberg <lyndon@orthanc.ca>
Tue, 27 Jan 2015 23:07:19 +0000 (15:07 -0800)
committerLyndon Nerenberg <lyndon@orthanc.ca>
Tue, 27 Jan 2015 23:07:19 +0000 (15:07 -0800)
config/config.c
man/mhparam.man
uip/mhparam.c

index a5cdfd9..5c0591c 100644 (file)
@@ -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
index dfa5aac..3df2a9e 100644 (file)
@@ -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
index acb416c..4fe8c8d 100644 (file)
@@ -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 },