README revision 161475
160786Sps
2161475Sdelphij                            Less, version 394
360786Sps
4161475Sdelphij    This is the distribution of less, version 394, released 03 Dec 2005.
560786Sps    This program is part of the GNU project (http://www.gnu.org).
660786Sps
760786Sps    This program is free software.  You may redistribute it and/or
860786Sps    modify it under the terms of either:
960786Sps
1060786Sps    1. The GNU General Public License, as published by the Free
1160786Sps       Software Foundation; either version 2, or (at your option) any
1260786Sps       later version.  A copy of this license is in the file COPYING.
1360786Sps    or
1460786Sps    2. The Less License, in the file LICENSE.
1560786Sps
1689019Sps    Please report any problems to bug-less@gnu.org or markn@greenwoodsoftware.com.
1789019Sps    See http://www.greenwoodsoftware.com/less for the latest info.
1860786Sps    You may also contact the author at:
1960786Sps          Mark Nudelman
2060786Sps          Greenwood Software
2160786Sps          PO Box 2402
2260786Sps          El Granada, CA  94018
2360786Sps          USA
2460786Sps
2560786Sps=========================================================================
2660786Sps
2760786SpsThis is the distribution of "less", a paginator similar to "more" or "pg".
2860786Sps
2960786SpsThe formatted manual page is in less.man.
3060786SpsThe manual page nroff source is in less.nro.
3160786SpsMajor changes made since the last posted version are in NEWS.
3260786Sps
3360786Sps=======================================================================
3460786SpsINSTALLATION (Unix systems only):
3560786Sps
3660786Sps1. Move the distributed source to its own directory and unpack it,
3760786Sps   if you have not already done so.  
3860786Sps
3960786Sps2. Type "sh configure".
4060786Sps   This will generate a Makefile and a defines.h.
4160786Sps   Warning: if you have a GNU sed, make sure it is version 2.05 or later.
4260786Sps
4360786Sps   The file INSTALL describes the usage of the configure program in
4460786Sps   general.  In addition, these options to configure are supported:
4560786Sps
4660786Sps   --with-editor=program
4760786Sps     Specifies the default editor program used by the "v" command.
4860786Sps     The default is "vi".
4960786Sps   --with-regex=lib
5060786Sps     Specifies the regular expression library used by less for pattern
5160786Sps     matching.  The default is "auto", which means the configure program 
5260786Sps     finds a regular expression library automatically.  Other values are:
5360786Sps        posix          Use the POSIX-compatible regcomp.
5460786Sps        pcre           Use the PCRE library.
5560786Sps        regcmp         Use the regcmp library.
5660786Sps        re_comp        Use the re_comp library.
5760786Sps        regcomp        Use the V8-compatible regcomp.
5860786Sps        regcomp-local  Use Henry Spencer's V8-compatible regcomp
5960786Sps                       (source is supplied with less).
60161475Sdelphij   --with-secure
61161475Sdelphij     Builds a "secure" version of less, with some features disabled
62161475Sdelphij	 to prevent users from viewing other files, accessing shell
63161475Sdelphij	 commands, etc.
6460786Sps
6560786Sps3. It is a good idea to look over the generated Makefile and defines.h
6660786Sps   and make sure they look ok.  If you know of any peculiarities of
6760786Sps   your system that configure might not have detected, you may fix the
6860786Sps   Makefile now.  Take particular notice of the list of "terminal" 
6960786Sps   libraries in the LIBS definition in the Makefile; these may need 
7060786Sps   to be edited.  The terminal libraries will be some subset of
7160786Sps       -lncurses  -lcurses  -ltermcap  -ltermlib
7260786Sps
7360786Sps   If you wish, you may edit defines.h to remove some optional features.
7460786Sps   If you choose not to include some features in your version, you may
7560786Sps   wish to edit the manual page "less.nro" and the help page "less.hlp" 
7660786Sps   to remove the descriptions of the features which you are removing.
7760786Sps   If you edit less.hlp, you should run "make -f Makefile.aut help.c".
7860786Sps
7960786Sps4. Type "make" and watch the fun.
8060786Sps
8160786Sps5. If the make succeeds, it will generate the programs "less",
8260786Sps   "lesskey" and "lessecho" in your current directory.  Test the 
8360786Sps   generated programs.
8460786Sps
8560786Sps6. When satisfied that it works, if you wish to install it
8660786Sps   in a public place, type "make install".
8760786Sps
8860786Sps   The default install destinations are:
8960786Sps        Executables (less, lesskey, lessecho) in /usr/local/bin
9060786Sps        Documentation (less.nro, lesskey.nro) in /usr/local/man/man1
9160786Sps   If you want to install any of these files elsewhere, define
9260786Sps   bindir and/or mandir to the appropriate directories.
9360786Sps
9460786SpsIf you have any problems building or running "less", suggestions, 
9589019Spscomplaints, etc., you may mail to the author at markn@greenwoodsoftware.com.
9660786Sps
9760786SpsNote to hackers: comments noting possible improvements are enclosed
9860786Spsin double curly brackets {{ like this }}.
9960786Sps
10060786Sps
10160786Sps
10260786Sps=======================================================================
10360786SpsINSTALLATION (MS-DOS systems only,
10460786Sps              with Microsoft C, Borland C, or DJGPP)
10560786Sps
10660786Sps1. Move the distributed source to its own directory.
10760786Sps   Depending on your compiler, you may need to convert the source 
10860786Sps   to have CR-LF rather than LF as line terminators.
10960786Sps
11063128Sps2. If you are using Microsoft C, rename MAKEFILE.DSU to MAKEFILE.
11160786Sps   If you are using Borland C, rename MAKEFILE.DSB to MAKEFILE.
11260786Sps   If you are using DJGPP, rename MAKEFILE.DSG to MAKEFILE.
11360786Sps
11460786Sps3. Look at MAKEFILE to make sure that the definitions for CC and LIBDIR
11560786Sps   are correct.  CC should be the name of your C compiler and
11660786Sps   LIBDIR should be the directory where the C libraries reside (for
11760786Sps   Microsoft C only).  If these definitions need to be changed, you can
11860786Sps   either modify the definitions directly in MAKEFILE, or set your
11960786Sps   environment variables CC and/or LIBDIR to override the definitions
12060786Sps   in MAKEFILE.
12160786Sps
12260786Sps4. If you wish, you may edit DEFINES.DS to remove some optional features.
12360786Sps   If you choose not to include some features in your version, you may
12460786Sps   wish to edit the manual page LESS.MAN and the help page HELP.C
12560786Sps   to remove the descriptions of the features which you are removing.
12660786Sps
12760786Sps5. Run your "make" program and watch the fun.
12860786Sps   If your "make" requires a flag to import environment variables,
12960786Sps   you should use that flag.
13060786Sps   If your compiler runs out of memory, try running "make -n >cmds.bat" 
13160786Sps   and then run cmds.bat.
13260786Sps
13360786Sps6. If the make succeeds, it will generate the programs "LESS.EXE" and
13460786Sps   "LESSKEY.EXE" in your current directory.  Test the generated programs.
13560786Sps
13660786Sps7. When satisfied that it works, you may wish to install LESS.EXE and
13760786Sps   LESSKEY.EXE in a directory which is included in your PATH.
13860786Sps
13960786Sps
14060786Sps
14160786Sps=======================================================================
14260786SpsINSTALLATION (Windows-95, Windows-98 and Windows-NT systems only,
14360786Sps              with Borland C or Microsoft Visual C++)
14460786Sps
14560786Sps1. Move the distributed source to its own directory.
14660786Sps
14760786Sps2. If you are using Borland C, rename Makefile.wnb to Makefile.
14860786Sps   If you are using Microsoft Visual C++, rename Makefile.wnm to Makefile.
14960786Sps
15060786Sps3. Check the Makefile to make sure the definitions look ok.
15160786Sps
15260786Sps4. If you wish, you may edit defines.wn to remove some optional features.
15360786Sps   If you choose not to include some features in your version, you may
15460786Sps   wish to edit the manual page less.man and the help page help.c
15560786Sps   to remove the descriptions of the features which you are removing.
15660786Sps
15760786Sps5. Type "make" and watch the fun.
15860786Sps
15960786Sps6. If the make succeeds, it will generate the programs "less.exe" and
16060786Sps   "lesskey.exe" in your current directory.  Test the generated programs.
16160786Sps
16260786Sps7. When satisfied that it works, if you wish to install it
16360786Sps   in a public place, type "make install".
16460786Sps   See step 6 of the Unix installation instructions for details
16560786Sps   on how to change the default installation directories.
16660786Sps
16760786Sps
16860786Sps
16960786Sps=======================================================================
17060786SpsINSTALLATION (OS/2 systems only,
17160786Sps              with EMX C)
17260786Sps
17360786Sps1. Move the distributed source to its own directory.
17460786Sps
17560786Sps2. Rename Makefile.o2e to Makefile.
17660786Sps
17760786Sps3. Check the Makefile to make sure the definitions look ok.
17860786Sps
17960786Sps4. If you wish, you may edit defines.o2 to remove some optional features.
18060786Sps   If you choose not to include some features in your version, you may
18160786Sps   wish to edit the manual page less.man and the help page help.c
18260786Sps   to remove the descriptions of the features which you are removing.
18360786Sps
18460786Sps5. Type "make" and watch the fun.
18560786Sps
18660786Sps6. If the make succeeds, it will generate the programs "less.exe" and
18760786Sps   "lesskey.exe" in your current directory.  Test the generated programs.
18860786Sps
18960786Sps7. Make sure you have the emx runtime installed. You need the emx DLLs
19060786Sps   emx.dll and emxlibcs.dll and also the termcap database, termcap.dat.
19160786Sps   Make sure you have termcap.dat either in the default location or
19260786Sps   somewhere in a directory listed in the PATH or INIT environment 
19360786Sps   variables.
19460786Sps
19589019Sps8. When satisfied that it works, you may wish to install less.exe,
19689019Sps   lesskey.exe and scrsize.exe in a directory which is included in 
19789019Sps   your PATH.  scrsize.exe is required only if you use a terminal
19889019Sps   emulator such as xterm or rxvt.
19960786Sps
20060786Sps
20160786Sps
20260786Sps=======================================================================
20360786SpsINSTALLATION (OS-9 systems only,
20460786Sps              with Microware C or Ultra C)
20560786Sps
20660786Sps1. Move the distributed source to its own directory.
20760786Sps
20860786Sps2. If you are using Microware C, rename Makefile.o9c to Makefile.
20960786Sps   If you are using Ultra C, rename Makefile.o9u to Makefile.
21060786Sps
21160786Sps3. Check the Makefile to make sure the definitions look ok.
21260786Sps
21360786Sps4. If you wish, you may edit defines.o9 to remove some optional features.
21460786Sps   If you choose not to include some features in your version, you may
21560786Sps   wish to edit the manual page less.man and the help page help.c
21660786Sps   to remove the descriptions of the features which you are removing.
21760786Sps
21860786Sps5. Type "dmake" and watch the fun.
21960786Sps   The standard OS-9 "make" will probably not work.  If you don't
22060786Sps   have dmake, you can get a copy from os9archive.rtsi.com.
22160786Sps
22260786Sps6. If the make succeeds, it will generate the programs "less" and
22360786Sps   "lesskey" in your current directory.  Test the generated programs.
22460786Sps
22560786Sps7. When satisfied that it works, if you wish to install it
22660786Sps   in a public place, type "dmake install".
22760786Sps   See step 6 of the Unix installation instructions for details
22860786Sps   on how to change the default installation directories.
22960786Sps
23089019Sps=======================================================================
23189019SpsACKNOWLEDGMENTS:
23289019Sps  Some versions of the less distribution are packaged using 
23389019Sps  Info-ZIP's compression utility.
23489019Sps  Info-ZIP's software is free and can be obtained as source 
23589019Sps  code or executables from various anonymous-ftp sites,
23689019Sps  including ftp.uu.net:/pub/archiving/zip.
237