diff options
author | 2003-06-23 19:11:54 +0000 | |
---|---|---|
committer | 2003-06-23 19:11:54 +0000 | |
commit | 91bafeefbb0709ea88516a8a5787183ebefe5007 (patch) | |
tree | dbf2dc53d69d2064dd03cc172ad269d8e143e526 | |
parent | install zmore (diff) | |
download | wireguard-openbsd-91bafeefbb0709ea88516a8a5787183ebefe5007.tar.xz wireguard-openbsd-91bafeefbb0709ea88516a8a5787183ebefe5007.zip |
this zmore no longer used
-rw-r--r-- | gnu/usr.bin/gzip/Makefile | 7 | ||||
-rw-r--r-- | gnu/usr.bin/gzip/zmore | 50 | ||||
-rw-r--r-- | gnu/usr.bin/gzip/zmore.1 | 146 |
3 files changed, 3 insertions, 200 deletions
diff --git a/gnu/usr.bin/gzip/Makefile b/gnu/usr.bin/gzip/Makefile index 147894ff736..58998af374d 100644 --- a/gnu/usr.bin/gzip/Makefile +++ b/gnu/usr.bin/gzip/Makefile @@ -1,14 +1,13 @@ -# $OpenBSD: Makefile,v 1.15 2003/06/22 22:18:42 deraadt Exp $ +# $OpenBSD: Makefile,v 1.16 2003/06/23 19:11:54 deraadt Exp $ # $NetBSD: Makefile,v 1.17 1995/10/24 22:18:34 jtc Exp $ -MAN= gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1 +MAN= gzexe.1 zdiff.1 zforce.1 znew.1 MLINKS+= zdiff.1 zcmp.1 LINKS+= ${BINDIR}/zdiff ${BINDIR}/zcmp afterinstall: install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/zforce ${.CURDIR}/gzexe ${.CURDIR}/znew \ - ${.CURDIR}/zmore ${.CURDIR}/zdiff \ - ${DESTDIR}${BINDIR} + ${.CURDIR}/zdiff ${DESTDIR}${BINDIR} .include <bsd.prog.mk> diff --git a/gnu/usr.bin/gzip/zmore b/gnu/usr.bin/gzip/zmore deleted file mode 100644 index 80869a3e608..00000000000 --- a/gnu/usr.bin/gzip/zmore +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -if test "`echo -n a`" = "-n a"; then - # looks like a SysV system: - n1=''; n2='\c' -else - n1='-n'; n2='' -fi -oldtty=`stty -g 2>/dev/null` -if stty -cbreak 2>/dev/null; then - cb='cbreak'; ncb='-cbreak' -else - # 'stty min 1' resets eof to ^a on both SunOS and SysV! - cb='min 1 -icanon'; ncb='icanon eof ^d' -fi -if test $? -eq 0 -a -n "$oldtty"; then - trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15 -else - trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15 -fi - -if test $# = 0; then - if test -t 0; then - echo usage: zmore files... - else - gzip -cdfq | eval ${PAGER-more} - fi -else - FIRST=1 - for FILE - do - if test $FIRST -eq 0; then - echo $n1 "--More--(Next file: $FILE)$n2" - stty $cb -echo 2>/dev/null - ANS=`dd bs=1 count=1 2>/dev/null` - stty $ncb echo 2>/dev/null - echo " " - if test "$ANS" = 'e' -o "$ANS" = 'q'; then - exit - fi - fi - if test "$ANS" != 's'; then - echo "------> $FILE <------" - gzip -cdfq "$FILE" | eval ${PAGER-more} - fi - if test -t; then - FIRST=0 - fi - done -fi diff --git a/gnu/usr.bin/gzip/zmore.1 b/gnu/usr.bin/gzip/zmore.1 deleted file mode 100644 index 47099b7e912..00000000000 --- a/gnu/usr.bin/gzip/zmore.1 +++ /dev/null @@ -1,146 +0,0 @@ -.\" $Id: zmore.1,v 1.2 1996/12/03 08:25:25 deraadt Exp $ -.TH ZMORE 1 -.SH NAME -zmore \- file perusal filter for crt viewing of compressed text -.SH SYNOPSIS -.B zmore -[ name ... ] -.SH DESCRIPTION -.I Zmore -is a filter which allows examination of compressed or plain text files -one screenful at a time on a soft-copy terminal. -.I zmore -works on files compressed with -.I compress, pack -or -.I gzip, -and also on uncompressed files. -If a file does not exist, -.I zmore -looks for a file of the same name with the addition of a .gz, .z or .Z suffix. -.PP -.I Zmore -normally pauses after each screenful, printing --More-- -at the bottom of the screen. -If the user then types a carriage return, one more line is displayed. -If the user hits a space, -another screenful is displayed. Other possibilities are enumerated later. -.PP -.I Zmore -looks in the file -.I /usr/share/misc/termcap -to determine terminal characteristics, -and to determine the default window size. -On a terminal capable of displaying 24 lines, -the default window size is 22 lines. -To use a pager other than the default -.I more, -set environment variable PAGER to the name of the desired program, such as -.I less. -.PP -Other sequences which may be typed when -.I zmore -pauses, and their effects, are as follows (\fIi\fP is an optional integer -argument, defaulting to 1) : -.PP -.IP \fIi\|\fP<space> -display -.I i -more lines, (or another screenful if no argument is given) -.PP -.IP ^D -display 11 more lines (a ``scroll''). -If -.I i -is given, then the scroll size is set to \fIi\|\fP. -.PP -.IP d -same as ^D (control-D) -.PP -.IP \fIi\|\fPz -same as typing a space except that \fIi\|\fP, if present, becomes the new -window size. Note that the window size reverts back to the default at the -end of the current file. -.PP -.IP \fIi\|\fPs -skip \fIi\|\fP lines and print a screenful of lines -.PP -.IP \fIi\|\fPf -skip \fIi\fP screenfuls and print a screenful of lines -.PP -.IP "q or Q" -quit reading the current file; go on to the next (if any) -.PP -.IP "e or q" -When the prompt --More--(Next file: -.IR file ) -is printed, this command causes zmore to exit. -.PP -.IP s -When the prompt --More--(Next file: -.IR file ) -is printed, this command causes zmore to skip the next file and continue. -.PP -.IP = -Display the current line number. -.PP -.IP \fIi\|\fP/expr -search for the \fIi\|\fP-th occurrence of the regular expression \fIexpr.\fP -If the pattern is not found, -.I zmore -goes on to the next file (if any). -Otherwise, a screenful is displayed, starting two lines before the place -where the expression was found. -The user's erase and kill characters may be used to edit the regular -expression. -Erasing back past the first column cancels the search command. -.PP -.IP \fIi\|\fPn -search for the \fIi\|\fP-th occurrence of the last regular expression entered. -.PP -.IP !command -invoke a shell with \fIcommand\|\fP. -The character `!' in "command" are replaced with the -previous shell command. The sequence "\\!" is replaced by "!". -.PP -.IP ":q or :Q" -quit reading the current file; go on to the next (if any) -(same as q or Q). -.PP -.IP . -(dot) repeat the previous command. -.PP -The commands take effect immediately, i.e., it is not necessary to -type a carriage return. -Up to the time when the command character itself is given, -the user may hit the line kill character to cancel the numerical -argument being formed. -In addition, the user may hit the erase character to redisplay the ---More-- message. -.PP -At any time when output is being sent to the terminal, the user can -hit the quit key (normally control\-\\). -.I Zmore -will stop sending output, and will display the usual --More-- -prompt. -The user may then enter one of the above commands in the normal manner. -Unfortunately, some output is lost when this is done, due to the -fact that any characters waiting in the terminal's output queue -are flushed when the quit signal occurs. -.PP -The terminal is set to -.I noecho -mode by this program so that the output can be continuous. -What you type will thus not show on your terminal, except for the / and ! -commands. -.PP -If the standard output is not a teletype, then -.I zmore -acts just like -.I zcat, -except that a header is printed before each file. -.SH FILES -.DT -/etc/termcap Terminal data base -.SH "SEE ALSO" -more(1), gzip(1), zdiff(1), zgrep(1), znew(1), zforce(1), gzexe(1) |