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