diff options
Diffstat (limited to 'gnu/usr.bin/groff/nroff')
-rw-r--r-- | gnu/usr.bin/groff/nroff/Makefile.sub | 17 | ||||
-rw-r--r-- | gnu/usr.bin/groff/nroff/nroff.1_in | 94 | ||||
-rw-r--r-- | gnu/usr.bin/groff/nroff/nroff.sh | 70 |
3 files changed, 0 insertions, 181 deletions
diff --git a/gnu/usr.bin/groff/nroff/Makefile.sub b/gnu/usr.bin/groff/nroff/Makefile.sub deleted file mode 100644 index 29abee542f5..00000000000 --- a/gnu/usr.bin/groff/nroff/Makefile.sub +++ /dev/null @@ -1,17 +0,0 @@ -MAN1=nroff.1 -NAMEPREFIX=$(g) -CLEANADD=nroff - -all: nroff - -nroff: nroff.sh - rm -f $@ - sed "$(SH_SCRIPT_SED_CMD)" $(srcdir)/nroff.sh >$@ - chmod +x $@ - -install_data: nroff - -rm -f $(bindir)/$(NAMEPREFIX)nroff - $(INSTALL_PROGRAM) nroff $(bindir)/$(NAMEPREFIX)nroff - -uninstall_sub: - -rm -f $(bindir)/$(NAMEPREFIX)nroff diff --git a/gnu/usr.bin/groff/nroff/nroff.1_in b/gnu/usr.bin/groff/nroff/nroff.1_in deleted file mode 100644 index 4087ebe53a5..00000000000 --- a/gnu/usr.bin/groff/nroff/nroff.1_in +++ /dev/null @@ -1,94 +0,0 @@ -.ig \"-*- nroff -*- -Copyright (C) 1989-1999 Free Software Foundation, Inc. - -Permission is granted to make and distribute verbatim copies of -this manual provided the copyright notice and this permission notice -are preserved on all copies. - -Permission is granted to copy and distribute modified versions of this -manual under the conditions for verbatim copying, provided that the -entire resulting derived work is distributed under the terms of a -permission notice identical to this one. - -Permission is granted to copy and distribute translations of this -manual into another language, under the above conditions for modified -versions, except that this permission notice may be included in -translations approved by the Free Software Foundation instead of in -the original English. -.. -.TH @G@NROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@" -.SH NAME -@g@nroff \- emulate nroff command with groff -.SH SYNOPSIS -.B @g@nroff -[ -.B \-h -] -[ -.B \-i -] -[ -.BI \-m name -] -[ -.BI \-n num -] -[ -.BI \-o list -] -[ -.BI \-r cn -] -[ -.BI \-T name -] -[ -.I file\|.\|.\|. -] -.SH DESCRIPTION -The -.B @g@nroff -script emulates the -.B nroff -command using groff. -The -.B \-T -option with an argument other than -.B ascii -and -.B latin1 -will be ignored. -The -.B \-h -option -is equivalent to the -.B grotty -.B \-h -option. -The -.BR \-i , -.BR \-n , -.BR \-m , -.B \-o -and -.B \-r -options have the effect described in -.BR @g@troff (@MAN1EXT@). -In addition -.B @g@nroff -silently ignores options of -.BR \-e , -.B \-q -or -.BR \-s . -Options -.B \-S -(safer) and -.B \-U -(unsafe) are passed to groff. -.B \-S -is passed by default. -.SH "SEE ALSO" -.BR groff (@MAN1EXT@), -.BR @g@troff (@MAN1EXT@), -.BR grotty (@MAN1EXT@) diff --git a/gnu/usr.bin/groff/nroff/nroff.sh b/gnu/usr.bin/groff/nroff/nroff.sh deleted file mode 100644 index 76ccf1cb4e2..00000000000 --- a/gnu/usr.bin/groff/nroff/nroff.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -# Emulate nroff with groff. - -prog="$0" -# Default device. -if test "X$LC_CTYPE" = "Xiso_8859_1" || test "X$LESSCHARSET" = "Xlatin1" -then - T=-Tlatin1 -else - T=-Tascii -fi -opts= -safer=-S - -for i -do - case $1 in - -h) - opts="$opts -P-h" - ;; - -[eq]|-s*) - # ignore these options - ;; - -[mrnoT]) - echo "$prog: option $1 requires an argument" >&2 - exit 1 - ;; - -i|-[mrno]*) - opts="$opts $1"; - ;; - - -Tascii|-Tlatin1|-Tps) - T=$1 - ;; - -T*) - # ignore other devices - ;; - -S) - # safer behaviour - safer=-S - ;; - -U) - # unsafe behaviour - safer=-U - ;; - -u*) - # Solaris 2.2 `man' uses -u0; ignore it, - # since `less' and `more' can use the emboldening info. - ;; - --) - shift - break - ;; - -) - break - ;; - -*) - echo "$prog: invalid option $1" >&2 - exit 1 - ;; - *) - break - ;; - esac - shift -done - -# This shell script is intended for use with man, so warnings are -# probably not wanted. Also load nroff-style character definitions. -exec groff $safer -Wall -mtty-char $T $opts ${1+"$@"} |