tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal to remove catman(8)



Jaromír Doleček wrote in
 <CAMnsW54MZstukjSWCe6449PXjcEX+mg+eoF2Ro80B_GaknGJLg%mail.gmail.com@localhost>:
 |Le mar. 10 nov. 2020 à 23:45, Mouse <mouse%rodents-montreal.org@localhost> a écrit :
 |> And, of course, when you're up single-user is, generally, when you're
 |> least able to bring other tools to bear or the like, and when you're
 |> possibly most likely need to know how to use a command you don't use
 |> enough to have memorized.  Fortunately, in this case I wasn't trying to
 |> recover a half-crashed system; nroff | less actually did work.
 |
 |OK, I see here a suggestion that in the year 2020, installed catpages
 |save the day as the only way how to get a formatted manpage for
 |publicly available operating system while in single-user without a
 |read-write /tmp. And that is the reason to keep the tool in base. For
 |the record, I find this suggestion really bizzare.
 |
 |It really looks like arguing just for arguing sake.

I will start creating cat pages for the next release
automatically, 'added manually for the last months ago, in order
to support old Solaris (Schily) aka Solaris/XXX which do not have
the mdoc(7) macro package.

   # And generate the HTML manual, while here
   if [ -z "${grappa}" ] && command -v ${roff} >/dev/null 2>&1; then
      echo 'nail.1: creating HTML manual'
      < nail.1 MDOCMX_ENABLE=1 ${roff} -Thtml -mdoc > /tmp/nail-manual.html
      echo 'nail.1: creating ASCII cat1 in '"${TMPDIR}"
      < nail.1 MDOCMX_ENABLE= ${roff} -Tascii -mdoc > "${TMPDIR}"/s-nail.cat1
      echo 'nail.1: creating mdocmx ASCII xcat1 in '"${TMPDIR}"
      < nail.1 MDOCMX_ENABLE=1 GROFF_NO_SGR=1 \
            ${roff} -Tascii -dmx-toc-force=tree -dmx-debug=1 -mdoc |
         col -b > "${TMPDIR}"/s-nail.xcat1
   fi

Yieeeha!  (Btw a system with /rescue is _so_ cool!)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


Home | Main Index | Thread Index | Old Index