NetBSD/usr.bin/less/less
1997-04-23 03:11:02 +00:00
..
acconfig.h import of less 321 1997-04-22 13:45:11 +00:00
brac.c import of less 321 1997-04-22 13:45:39 +00:00
ch.c import of less 321 1997-04-22 13:45:11 +00:00
charset.c import of less 321 1997-04-22 13:45:11 +00:00
cmd.h import of less 321 1997-04-22 13:45:39 +00:00
cmdbuf.c import of less 321 1997-04-22 13:45:11 +00:00
command.c merge in less 321. 1997-04-22 14:16:18 +00:00
decode.c import of less 321 1997-04-22 13:45:39 +00:00
defines.h import of less 321 1997-04-22 13:45:11 +00:00
edit.c import of less 321 1997-04-22 13:45:39 +00:00
filename.c import of less 321 1997-04-22 13:45:11 +00:00
forwback.c merge in less 321. 1997-04-22 14:16:18 +00:00
funcs.h import of less 321 1997-04-22 13:45:39 +00:00
help.c import of less 321 1997-04-22 13:45:11 +00:00
ifile.c import of less 321 1997-04-22 13:45:11 +00:00
input.c import of less 321 1997-04-22 13:45:39 +00:00
INSTALL import of less 321 1997-04-22 13:45:11 +00:00
jump.c import of less 321 1997-04-22 13:45:11 +00:00
less.1 merge in less 321. 1997-04-22 14:16:18 +00:00
less.h import of less 321 1997-04-22 13:45:39 +00:00
line.c import of less 321 1997-04-22 13:45:11 +00:00
linenum.c import of less 321 1997-04-22 13:45:11 +00:00
lsystem.c import of less 321 1997-04-22 13:45:39 +00:00
main.c merge in less 321. 1997-04-22 14:16:18 +00:00
Makefile more.help no longer exists. 1997-04-23 03:11:02 +00:00
mark.c import of less 321 1997-04-22 13:45:11 +00:00
NEWS import of less 321 1997-04-22 13:45:39 +00:00
optfunc.c import of less 321 1997-04-22 13:45:11 +00:00
option.c import of less 321 1997-04-22 13:45:11 +00:00
option.h import of less 321 1997-04-22 13:45:39 +00:00
opttbl.c merge in less 321. 1997-04-22 14:16:18 +00:00
os.c import of less 321 1997-04-22 13:45:11 +00:00
output.c import of less 321 1997-04-22 13:45:39 +00:00
position.c import of less 321 1997-04-22 13:45:11 +00:00
position.h import of less 321 1997-04-22 13:45:39 +00:00
prompt.c merge in less 321. 1997-04-22 14:16:18 +00:00
README import of less 321 1997-04-22 13:45:11 +00:00
regexp.c import of less 321 1997-04-22 13:45:11 +00:00
regexp.h import of less 321 1997-04-22 13:45:39 +00:00
screen.c merge in less 321. 1997-04-22 14:16:18 +00:00
search.c import of less 321 1997-04-22 13:45:11 +00:00
signal.c import of less 321 1997-04-22 13:45:39 +00:00
tags.c import of less 321 1997-04-22 13:45:11 +00:00
ttyin.c import of less 321 1997-04-22 13:45:39 +00:00
version.c import of less 321 1997-04-22 13:45:39 +00:00

=========================================================================
=== This is the distribution of less, version 321, released 18 Jul 96 ===
===     Please report any problems to the author at markn@3do.com.    ===
===   See http://members.aol.com/marknudel/less for the latest info.  ===
=========================================================================

This is the distribution of "less", a paginator similar to "more" or "pg".

The formatted manual page is in less.man.
The manual page nroff source is in less.nro.
Major changes made since the last posted version are in NEWS.
Known bugs in this version are in BUGS.

===================
===== WARNING =====
===================
	The Microsoft C port for MS-DOS and the Ultra C port 
		for OS-9 are not currently working.  
	Until these are fixed, for MS-DOS use Borland C, 
		and for OS-9 use Microware C.
	If you have fixes for either of these ports, 
		send them to markn@3do.com.
	
=======================================================================
INSTALLATION (Unix systems only):

1. Move the distributed source to its own directory and unpack it,
   if you have not already done so.  

2. Type "sh configure".
   This will generate a Makefile and a defines.h.
   Warning: if you have a GNU sed, make sure it is version 2.05 or later.

3. It is a good idea to look over the generated Makefile and defines.h
   and make sure they look ok.  If you know of any peculiarities of
   your system that configure might not have detected, you may fix the
   Makefile now.  

   If you wish, you may edit defines.h to remove some optional features.
   If you wish to build a "secure" version of less (which disables all
   features which might allow a user to do unintended things to the system
   on which less is running), edit defines.h and define SECURE to 1.
   If you choose not to include some features in your version, you may
   wish to edit the manual page "less.nro" and the help page "less.hlp" 
   to remove the descriptions of the features which you are removing.
   If you edit less.hlp, you should run "make -f Makefile.aut help.c".

4. Type "make" and watch the fun.

5. If the make succeeds, it will generate the programs "less" and
   "lesskey" in your current directory.  Test the generated programs.

6. When satisfied that it works, if you wish to install it
   in a public place, type "make install".

   The default install destinations are:
	Executables (less, lesskey) in /usr/local/bin
	Documentation (less.nro, lesskey.nro) in /usr/local/man/man1
   If you want to install any of these files elsewhere, define
   bindir and/or mandir to the appropriate directories.

If you have any problems building or running "less", suggestions, 
complaints, etc., you may mail to the author at markn@3do.com

Note to hackers: comments noting possible improvements are enclosed
in double curly brackets {{ like this }}.



=======================================================================
INSTALLATION (MS-DOS systems only)

1. Move the distributed source to its own directory.
   Make sure the source has been converted to have CR-LF rather than 
   LF as line terminators.

2. If you are using Microsoft C, rename MAKEFILE.DOS to MAKEFILE.
   If you are using Borland C, rename MAKEFILE.BCC to MAKEFILE.

3. Look at MAKEFILE to make sure that the definitions for CC and LIBDIR
   are correct.  CC should be the name of your C compiler and
   LIBDIR should be the directory where the C libraries
   reside.  If these definitions need to be changed, you can either 
   modify the definitions directly in MAKEFILE, or set your environment 
   variables CC and/or LIBDIR to override the definitions in MAKEFILE.

4. If you wish, you may edit DEFINES.DOS to remove some optional features.
   If you choose not to include some features in your version, you may
   wish to edit the manual page LESS.MAN and the help page HELP.C
   to remove the descriptions of the features which you are removing.

5. Run your "make" program and watch the fun.
   If your "make" requires a flag to import environment variables,
   you should use that flag.
   If your compiler runs out of memory, try running "make -n >cmds.bat" 
   and then run cmds.bat.

6. If the make succeeds, it will generate the programs "LESS.EXE" and
   "LESSKEY.EXE" in your current directory.  Test the generated programs.

7. When satisfied that it works, you may wish to install LESS.EXE and
   LESSKEY.EXE in a directory which is included in your PATH.



=======================================================================
INSTALLATION (Windows-95 and Windows-NT systems only)

1. Move the distributed source to its own directory.

2. Rename Makefile.w32 to Makefile.

3. Check the Makefile to make sure the definitions look ok.

4. If you wish, you may edit defines.w32 to remove some optional features.
   If you choose not to include some features in your version, you may
   wish to edit the manual page less.man and the help page help.c
   to remove the descriptions of the features which you are removing.

5. Type "make" and watch the fun.

6. If the make succeeds, it will generate the programs "less.exe" and
   "lesskey.exe" in your current directory.  Test the generated programs.

7. When satisfied that it works, if you wish to install it
   in a public place, type "make install".
   See step 6 of the Unix installation instructions for details
   on how to change the default installation directories.



=======================================================================
INSTALLATION (OS/2 systems only)

1. Move the distributed source to its own directory.

2. Rename Makefile.os2 to Makefile.

3. Check the Makefile to make sure the definitions look ok.

4. If you wish, you may edit defines.os2 to remove some optional features.
   If you choose not to include some features in your version, you may
   wish to edit the manual page less.man and the help page help.c
   to remove the descriptions of the features which you are removing.

5. Type "make" and watch the fun.

6. If the make succeeds, it will generate the programs "less.exe" and
   "lesskey.exe" in your current directory.  Test the generated programs.

7. Make sure you have the emx runtime installed. You need the emx DLLs
   emx.dll and emxlibcs.dll and also the termcap database, termcap.dat.
   Make sure you have termcap.dat either in the default location or
   somewhere in a directory listed in the PATH or INIT environment 
   variables.

8. When satisfied that it works, you may wish to install less.exe and
   lesskey.exe in a directory which is included in your PATH.



=======================================================================
INSTALLATION (OS-9 systems only)

1. Move the distributed source to its own directory.

2. If you are using Microware C, rename Makefile.o9c to Makefile.
   If you are using Ultra C, rename Makefile.o9u to Makefile.

3. Check the Makefile to make sure the definitions look ok.

4. If you wish, you may edit defines.o9 to remove some optional features.
   If you choose not to include some features in your version, you may
   wish to edit the manual page less.man and the help page help.c
   to remove the descriptions of the features which you are removing.

5. Type "dmake" and watch the fun.
   The standard OS-9 "make" will probably not work.  If you don't
   have dmake, you can get a copy from os9archive.rtsi.com.

6. If the make succeeds, it will generate the programs "less" and
   "lesskey" in your current directory.  Test the generated programs.

7. When satisfied that it works, if you wish to install it
   in a public place, type "dmake install".
   See step 6 of the Unix installation instructions for details
   on how to change the default installation directories.