1221115Sobrien**************************************************************************
2221115Sobrien**************************************************************************
3221115Sobrien**                                                                      **
4221115Sobrien** The FreeBSD Project has chosen to redistribute and modify Less under **
5221115Sobrien** the 'Less License' (as described in the 'LICENSE' file).             **
6221115Sobrien**                                                                      **
7221115Sobrien**************************************************************************
8221115Sobrien**************************************************************************
960786Sps
10251154Sdelphij                            Less, version 458
1160786Sps
12251154Sdelphij    This is the distribution of less, version 458, released 04 Apr 2013.
1360786Sps    This program is part of the GNU project (http://www.gnu.org).
1460786Sps
1560786Sps    This program is free software.  You may redistribute it and/or
1660786Sps    modify it under the terms of either:
1760786Sps
1860786Sps    1. The GNU General Public License, as published by the Free
19191930Sdelphij       Software Foundation; either version 3, or (at your option) any
2060786Sps       later version.  A copy of this license is in the file COPYING.
2160786Sps    or
2260786Sps    2. The Less License, in the file LICENSE.
2360786Sps
24240121Sdelphij    Please report any problems to bug-less@gnu.org.
2589019Sps    See http://www.greenwoodsoftware.com/less for the latest info.
2660786Sps
2760786Sps=========================================================================
2860786Sps
2960786SpsThis is the distribution of "less", a paginator similar to "more" or "pg".
3060786Sps
3160786SpsThe formatted manual page is in less.man.
3260786SpsThe manual page nroff source is in less.nro.
3360786SpsMajor changes made since the last posted version are in NEWS.
3460786Sps
3560786Sps=======================================================================
3660786SpsINSTALLATION (Unix systems only):
3760786Sps
3860786Sps1. Move the distributed source to its own directory and unpack it,
3960786Sps   if you have not already done so.  
4060786Sps
4160786Sps2. Type "sh configure".
4260786Sps   This will generate a Makefile and a defines.h.
4360786Sps   Warning: if you have a GNU sed, make sure it is version 2.05 or later.
4460786Sps
4560786Sps   The file INSTALL describes the usage of the configure program in
4660786Sps   general.  In addition, these options to configure are supported:
4760786Sps
4860786Sps   --with-editor=program
4960786Sps     Specifies the default editor program used by the "v" command.
5060786Sps     The default is "vi".
51170256Sdelphij
5260786Sps   --with-regex=lib
5360786Sps     Specifies the regular expression library used by less for pattern
5460786Sps     matching.  The default is "auto", which means the configure program 
5560786Sps     finds a regular expression library automatically.  Other values are:
5660786Sps        posix          Use the POSIX-compatible regcomp.
5760786Sps        pcre           Use the PCRE library.
5860786Sps        regcmp         Use the regcmp library.
5960786Sps        re_comp        Use the re_comp library.
6060786Sps        regcomp        Use the V8-compatible regcomp.
6160786Sps        regcomp-local  Use Henry Spencer's V8-compatible regcomp
6260786Sps                       (source is supplied with less).
63240121Sdelphij        none           No regular expressions, only simple string matching.
64161475Sdelphij   --with-secure
65161475Sdelphij     Builds a "secure" version of less, with some features disabled
66240121Sdelphij     to prevent users from viewing other files, accessing shell
67240121Sdelphij     commands, etc.
6860786Sps
69170256Sdelphij
7060786Sps3. It is a good idea to look over the generated Makefile and defines.h
7160786Sps   and make sure they look ok.  If you know of any peculiarities of
7260786Sps   your system that configure might not have detected, you may fix the
7360786Sps   Makefile now.  Take particular notice of the list of "terminal" 
7460786Sps   libraries in the LIBS definition in the Makefile; these may need 
7560786Sps   to be edited.  The terminal libraries will be some subset of
7660786Sps       -lncurses  -lcurses  -ltermcap  -ltermlib
7760786Sps
7860786Sps   If you wish, you may edit defines.h to remove some optional features.
7960786Sps   If you choose not to include some features in your version, you may
8060786Sps   wish to edit the manual page "less.nro" and the help page "less.hlp" 
8160786Sps   to remove the descriptions of the features which you are removing.
8260786Sps   If you edit less.hlp, you should run "make -f Makefile.aut help.c".
8360786Sps
8460786Sps4. Type "make" and watch the fun.
8560786Sps
8660786Sps5. If the make succeeds, it will generate the programs "less",
8760786Sps   "lesskey" and "lessecho" in your current directory.  Test the 
8860786Sps   generated programs.
8960786Sps
9060786Sps6. When satisfied that it works, if you wish to install it
9160786Sps   in a public place, type "make install".
9260786Sps
9360786Sps   The default install destinations are:
9460786Sps        Executables (less, lesskey, lessecho) in /usr/local/bin
9560786Sps        Documentation (less.nro, lesskey.nro) in /usr/local/man/man1
9660786Sps   If you want to install any of these files elsewhere, define
9760786Sps   bindir and/or mandir to the appropriate directories.
9860786Sps
9960786SpsIf you have any problems building or running "less", suggestions, 
100240121Sdelphijcomplaints, etc., you may mail to bug-less@gnu.org.
10160786Sps
10260786SpsNote to hackers: comments noting possible improvements are enclosed
10360786Spsin double curly brackets {{ like this }}.
10460786Sps
105221715Sdelphij(Note that the above note was originally written at a time when 
106221715Sdelphij"hackers" most commonly meant "enthusiastic and dedicated computer 
107221715Sdelphijprogrammers", not "persons who attempt to circumvent computer security".)
10860786Sps
10960786Sps
110221715Sdelphij
11160786Sps=======================================================================
11260786SpsINSTALLATION (MS-DOS systems only,
11360786Sps              with Microsoft C, Borland C, or DJGPP)
11460786Sps
11560786Sps1. Move the distributed source to its own directory.
11660786Sps   Depending on your compiler, you may need to convert the source 
11760786Sps   to have CR-LF rather than LF as line terminators.
11860786Sps
11963128Sps2. If you are using Microsoft C, rename MAKEFILE.DSU to MAKEFILE.
12060786Sps   If you are using Borland C, rename MAKEFILE.DSB to MAKEFILE.
12160786Sps   If you are using DJGPP, rename MAKEFILE.DSG to MAKEFILE.
12260786Sps
12360786Sps3. Look at MAKEFILE to make sure that the definitions for CC and LIBDIR
12460786Sps   are correct.  CC should be the name of your C compiler and
12560786Sps   LIBDIR should be the directory where the C libraries reside (for
12660786Sps   Microsoft C only).  If these definitions need to be changed, you can
12760786Sps   either modify the definitions directly in MAKEFILE, or set your
12860786Sps   environment variables CC and/or LIBDIR to override the definitions
12960786Sps   in MAKEFILE.
13060786Sps
13160786Sps4. If you wish, you may edit DEFINES.DS to remove some optional features.
13260786Sps   If you choose not to include some features in your version, you may
13360786Sps   wish to edit the manual page LESS.MAN and the help page HELP.C
13460786Sps   to remove the descriptions of the features which you are removing.
13560786Sps
13660786Sps5. Run your "make" program and watch the fun.
13760786Sps   If your "make" requires a flag to import environment variables,
13860786Sps   you should use that flag.
13960786Sps   If your compiler runs out of memory, try running "make -n >cmds.bat" 
14060786Sps   and then run cmds.bat.
14160786Sps
14260786Sps6. If the make succeeds, it will generate the programs "LESS.EXE" and
14360786Sps   "LESSKEY.EXE" in your current directory.  Test the generated programs.
14460786Sps
14560786Sps7. When satisfied that it works, you may wish to install LESS.EXE and
14660786Sps   LESSKEY.EXE in a directory which is included in your PATH.
14760786Sps
14860786Sps
14960786Sps
15060786Sps=======================================================================
15160786SpsINSTALLATION (Windows-95, Windows-98 and Windows-NT systems only,
15260786Sps              with Borland C or Microsoft Visual C++)
15360786Sps
15460786Sps1. Move the distributed source to its own directory.
15560786Sps
15660786Sps2. If you are using Borland C, rename Makefile.wnb to Makefile.
15760786Sps   If you are using Microsoft Visual C++, rename Makefile.wnm to Makefile.
15860786Sps
15960786Sps3. Check the Makefile to make sure the definitions look ok.
16060786Sps
16160786Sps4. If you wish, you may edit defines.wn to remove some optional features.
16260786Sps   If you choose not to include some features in your version, you may
16360786Sps   wish to edit the manual page less.man and the help page help.c
16460786Sps   to remove the descriptions of the features which you are removing.
16560786Sps
16660786Sps5. Type "make" and watch the fun.
16760786Sps
16860786Sps6. If the make succeeds, it will generate the programs "less.exe" and
16960786Sps   "lesskey.exe" in your current directory.  Test the generated programs.
17060786Sps
17160786Sps7. When satisfied that it works, if you wish to install it
17260786Sps   in a public place, type "make install".
17360786Sps   See step 6 of the Unix installation instructions for details
17460786Sps   on how to change the default installation directories.
17560786Sps
17660786Sps
17760786Sps
17860786Sps=======================================================================
17960786SpsINSTALLATION (OS/2 systems only,
18060786Sps              with EMX C)
18160786Sps
18260786Sps1. Move the distributed source to its own directory.
18360786Sps
18460786Sps2. Rename Makefile.o2e to Makefile.
18560786Sps
18660786Sps3. Check the Makefile to make sure the definitions look ok.
18760786Sps
18860786Sps4. If you wish, you may edit defines.o2 to remove some optional features.
18960786Sps   If you choose not to include some features in your version, you may
19060786Sps   wish to edit the manual page less.man and the help page help.c
19160786Sps   to remove the descriptions of the features which you are removing.
19260786Sps
19360786Sps5. Type "make" and watch the fun.
19460786Sps
19560786Sps6. If the make succeeds, it will generate the programs "less.exe" and
19660786Sps   "lesskey.exe" in your current directory.  Test the generated programs.
19760786Sps
19860786Sps7. Make sure you have the emx runtime installed. You need the emx DLLs
19960786Sps   emx.dll and emxlibcs.dll and also the termcap database, termcap.dat.
20060786Sps   Make sure you have termcap.dat either in the default location or
20160786Sps   somewhere in a directory listed in the PATH or INIT environment 
20260786Sps   variables.
20360786Sps
20489019Sps8. When satisfied that it works, you may wish to install less.exe,
20589019Sps   lesskey.exe and scrsize.exe in a directory which is included in 
20689019Sps   your PATH.  scrsize.exe is required only if you use a terminal
20789019Sps   emulator such as xterm or rxvt.
20860786Sps
20960786Sps
21060786Sps
21160786Sps=======================================================================
21260786SpsINSTALLATION (OS-9 systems only,
21360786Sps              with Microware C or Ultra C)
21460786Sps
21560786Sps1. Move the distributed source to its own directory.
21660786Sps
21760786Sps2. If you are using Microware C, rename Makefile.o9c to Makefile.
21860786Sps   If you are using Ultra C, rename Makefile.o9u to Makefile.
21960786Sps
22060786Sps3. Check the Makefile to make sure the definitions look ok.
22160786Sps
22260786Sps4. If you wish, you may edit defines.o9 to remove some optional features.
22360786Sps   If you choose not to include some features in your version, you may
22460786Sps   wish to edit the manual page less.man and the help page help.c
22560786Sps   to remove the descriptions of the features which you are removing.
22660786Sps
22760786Sps5. Type "dmake" and watch the fun.
22860786Sps   The standard OS-9 "make" will probably not work.  If you don't
22960786Sps   have dmake, you can get a copy from os9archive.rtsi.com.
23060786Sps
23160786Sps6. If the make succeeds, it will generate the programs "less" and
23260786Sps   "lesskey" in your current directory.  Test the generated programs.
23360786Sps
23460786Sps7. When satisfied that it works, if you wish to install it
23560786Sps   in a public place, type "dmake install".
23660786Sps   See step 6 of the Unix installation instructions for details
23760786Sps   on how to change the default installation directories.
23860786Sps
23989019Sps=======================================================================
24089019SpsACKNOWLEDGMENTS:
24189019Sps  Some versions of the less distribution are packaged using 
24289019Sps  Info-ZIP's compression utility.
24389019Sps  Info-ZIP's software is free and can be obtained as source 
24489019Sps  code or executables from various anonymous-ftp sites,
24589019Sps  including ftp.uu.net:/pub/archiving/zip.
246