It might be helpful.
/uip/mhstore
/uip/mhtest
/uip/mmh
+/uip/mmhwrap
/uip/msgchk
/uip/msh
/uip/new
# man pages to install in $(mandir)/$(manext1)
MAN1SRC = ali. anno. burst. comp. dist. flist. flists. folder. folders. \
- forw. inc. mark. mhbuild. mhl. mhlist. mmh. \
+ forw. inc. mark. mhbuild. mhl. mhlist. mmh. mmhwrap. \
mhmail. mhparam. mhpath. mhshow. mhstore. msgchk. new. fnext. \
fprev. unseen. next. packf. pick. prev. prompter. rcvdist. rcvpack. \
rcvstore. refile. repl. rmf. rmm. scan. send. sendfiles. \
--- /dev/null
+.\"
+.\" %nmhwarning%
+.\"
+.TH MMHWRAP %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
+.SH NAME
+mmhwrap \- invoke mmh commands if they are not in $PATH
+.SH SYNOPSIS
+.HP 5
+.na
+.B mmhwrap
+.B command
+.RB [ options ...]
+.ad
+.SH DESCRIPTION
+.PP
+Use
+.B mmhwrap
+if you want to invoke mmh programs without adding the mmh bindir
+into $PATH, or if you want to install
+.B nmh
+and
+.B mmh
+both.
+As their tools are equally named (but incompatibe) you can only
+have one of both tool chests accessible through $PATH.
+Use the wrapper to access
+.B mmh
+tools, if you have the
+.B nmh
+tools in your $PATH (first).
+.PP
+Copy
+.B mmhwrap
+into a directory that's part of $PATH, likely $HOME/bin or /usr/local/bin.
+You likely want to rename
+.B mmhwrap
+to something shorter, like `m' for instance:
+.PP
+.RS 5
+.nf
+cp %libdir%/mmhwrap $HOME/bin/m
+chmod +x $HOME/bin/m
+.fi
+.RE
+.PP
+Then use it this way:
+.PP
+.RS 5
+.nf
+% m folder
+inbox+ has 162 messages (1\-177); cur=131; (others).
+
+% m scan \-help
+Usage: scan [+folder] [msgs] [switches]
+ switches are:
+ \-form formatfile
+ \-width columns
+ \-(file) file
+ \-version
+ \-help
+
+% m scan f
+ 1 2012\-02\-13 To: meillo laber blubb
+
+% m refile l +foo
+.fi
+.RE
+
+.SH FILES
+None
+
+.SH "PROFILE COMPONENTS"
+None
+
+.SH CONTEXT
+None
+
+.SH "SEE ALSO"
+mmh\-intro(7)
LCMDS = flists folders next prev fnext fprev unseen
# misc support binaries
-MISC = ap dp fmtdump mhtest
+MISC = ap dp fmtdump mhtest mmhwrap
# commands with 'S'pecial installation needs
SCMDS = inc
# source files
SRCS = ali.c aliasbr.c anno.c ap.c burst.c comp.c \
dist.c distsbr.c dp.c dropsbr.c flist.c fmtdump.c \
- folder.c forw.c inc.c mmh.sh mark.c md5.c mhbuild.c \
+ folder.c forw.c inc.c mark.c mmh.sh mmhwrap.sh md5.c mhbuild.c \
mhcachesbr.c mhfree.c mhl.c mhlist.c mhlistsbr.c \
mhmail.c mhmisc.c mhoutsbr.c mhparam.c mhparse.c \
mhpath.c mhshow.c mhshowsbr.c mhstore.c mhtest.c \
inc: inc.o scansbr.o termsbr.o $(LOCALLIBS)
$(LINK) inc.o scansbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
+mark: mark.o $(LOCALLIBS)
+ $(LINK) mark.o $(LINKLIBS)
+
mmh: mmh.sh
cp $(srcdir)/mmh.sh mmh
chmod +x mmh
-mark: mark.o $(LOCALLIBS)
- $(LINK) mark.o $(LINKLIBS)
+mmhwrap: mmhwrap.sh
+ sed "s,%bindir%,"$(bindir)"," $(srcdir)/mmhwrap.sh >mmhwrap
+ chmod +x mmhwrap
mhbuild: mhbuild.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o mhparse.o termsbr.o md5.o $(LOCALLIBS)
$(LINK) mhbuild.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o mhparse.o md5.o $(LINKLIBS) $(TERMLIB)
--- /dev/null
+#!/bin/sh
+#
+# Wrapper for mmh commands
+#
+# For parallel installations of nmh and mmh.
+# Removes the need to add /usr/local/mmh/bin to $PATH.
+#
+# Copy only this script into a $PATH directory.
+
+PATH="%bindir%:$PATH"
+exec "$@"