xref: /minix3/external/bsd/less/dist/README (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1f7cf2976SLionel Sambuc
2*84d9c625SLionel Sambuc                            Less, version 458
3f7cf2976SLionel Sambuc
4*84d9c625SLionel Sambuc    This is the distribution of less, version 458, released 04 Apr 2013.
5f7cf2976SLionel Sambuc    This program is part of the GNU project (http://www.gnu.org).
6f7cf2976SLionel Sambuc
7f7cf2976SLionel Sambuc    This program is free software.  You may redistribute it and/or
8f7cf2976SLionel Sambuc    modify it under the terms of either:
9f7cf2976SLionel Sambuc
10f7cf2976SLionel Sambuc    1. The GNU General Public License, as published by the Free
11f7cf2976SLionel Sambuc       Software Foundation; either version 3, or (at your option) any
12f7cf2976SLionel Sambuc       later version.  A copy of this license is in the file COPYING.
13f7cf2976SLionel Sambuc    or
14f7cf2976SLionel Sambuc    2. The Less License, in the file LICENSE.
15f7cf2976SLionel Sambuc
16*84d9c625SLionel Sambuc    Please report any problems to bug-less@gnu.org.
17f7cf2976SLionel Sambuc    See http://www.greenwoodsoftware.com/less for the latest info.
18f7cf2976SLionel Sambuc
19f7cf2976SLionel Sambuc=========================================================================
20f7cf2976SLionel Sambuc
21f7cf2976SLionel SambucThis is the distribution of "less", a paginator similar to "more" or "pg".
22f7cf2976SLionel Sambuc
23f7cf2976SLionel SambucThe formatted manual page is in less.man.
24f7cf2976SLionel SambucThe manual page nroff source is in less.nro.
25f7cf2976SLionel SambucMajor changes made since the last posted version are in NEWS.
26f7cf2976SLionel Sambuc
27f7cf2976SLionel Sambuc=======================================================================
28f7cf2976SLionel SambucINSTALLATION (Unix systems only):
29f7cf2976SLionel Sambuc
30f7cf2976SLionel Sambuc1. Move the distributed source to its own directory and unpack it,
31f7cf2976SLionel Sambuc   if you have not already done so.
32f7cf2976SLionel Sambuc
33f7cf2976SLionel Sambuc2. Type "sh configure".
34f7cf2976SLionel Sambuc   This will generate a Makefile and a defines.h.
35f7cf2976SLionel Sambuc   Warning: if you have a GNU sed, make sure it is version 2.05 or later.
36f7cf2976SLionel Sambuc
37f7cf2976SLionel Sambuc   The file INSTALL describes the usage of the configure program in
38f7cf2976SLionel Sambuc   general.  In addition, these options to configure are supported:
39f7cf2976SLionel Sambuc
40f7cf2976SLionel Sambuc   --with-editor=program
41f7cf2976SLionel Sambuc     Specifies the default editor program used by the "v" command.
42f7cf2976SLionel Sambuc     The default is "vi".
43f7cf2976SLionel Sambuc
44f7cf2976SLionel Sambuc   --with-regex=lib
45f7cf2976SLionel Sambuc     Specifies the regular expression library used by less for pattern
46f7cf2976SLionel Sambuc     matching.  The default is "auto", which means the configure program
47f7cf2976SLionel Sambuc     finds a regular expression library automatically.  Other values are:
48f7cf2976SLionel Sambuc        posix          Use the POSIX-compatible regcomp.
49f7cf2976SLionel Sambuc        pcre           Use the PCRE library.
50f7cf2976SLionel Sambuc        regcmp         Use the regcmp library.
51f7cf2976SLionel Sambuc        re_comp        Use the re_comp library.
52f7cf2976SLionel Sambuc        regcomp        Use the V8-compatible regcomp.
53f7cf2976SLionel Sambuc        regcomp-local  Use Henry Spencer's V8-compatible regcomp
54f7cf2976SLionel Sambuc                       (source is supplied with less).
55*84d9c625SLionel Sambuc        none           No regular expressions, only simple string matching.
56f7cf2976SLionel Sambuc   --with-secure
57f7cf2976SLionel Sambuc     Builds a "secure" version of less, with some features disabled
58f7cf2976SLionel Sambuc     to prevent users from viewing other files, accessing shell
59f7cf2976SLionel Sambuc     commands, etc.
60f7cf2976SLionel Sambuc
61f7cf2976SLionel Sambuc
62f7cf2976SLionel Sambuc3. It is a good idea to look over the generated Makefile and defines.h
63f7cf2976SLionel Sambuc   and make sure they look ok.  If you know of any peculiarities of
64f7cf2976SLionel Sambuc   your system that configure might not have detected, you may fix the
65f7cf2976SLionel Sambuc   Makefile now.  Take particular notice of the list of "terminal"
66f7cf2976SLionel Sambuc   libraries in the LIBS definition in the Makefile; these may need
67f7cf2976SLionel Sambuc   to be edited.  The terminal libraries will be some subset of
68f7cf2976SLionel Sambuc       -lncurses  -lcurses  -ltermcap  -ltermlib
69f7cf2976SLionel Sambuc
70f7cf2976SLionel Sambuc   If you wish, you may edit defines.h to remove some optional features.
71f7cf2976SLionel Sambuc   If you choose not to include some features in your version, you may
72f7cf2976SLionel Sambuc   wish to edit the manual page "less.nro" and the help page "less.hlp"
73f7cf2976SLionel Sambuc   to remove the descriptions of the features which you are removing.
74f7cf2976SLionel Sambuc   If you edit less.hlp, you should run "make -f Makefile.aut help.c".
75f7cf2976SLionel Sambuc
76f7cf2976SLionel Sambuc4. Type "make" and watch the fun.
77f7cf2976SLionel Sambuc
78f7cf2976SLionel Sambuc5. If the make succeeds, it will generate the programs "less",
79f7cf2976SLionel Sambuc   "lesskey" and "lessecho" in your current directory.  Test the
80f7cf2976SLionel Sambuc   generated programs.
81f7cf2976SLionel Sambuc
82f7cf2976SLionel Sambuc6. When satisfied that it works, if you wish to install it
83f7cf2976SLionel Sambuc   in a public place, type "make install".
84f7cf2976SLionel Sambuc
85f7cf2976SLionel Sambuc   The default install destinations are:
86f7cf2976SLionel Sambuc        Executables (less, lesskey, lessecho) in /usr/local/bin
87f7cf2976SLionel Sambuc        Documentation (less.nro, lesskey.nro) in /usr/local/man/man1
88f7cf2976SLionel Sambuc   If you want to install any of these files elsewhere, define
89f7cf2976SLionel Sambuc   bindir and/or mandir to the appropriate directories.
90f7cf2976SLionel Sambuc
91f7cf2976SLionel SambucIf you have any problems building or running "less", suggestions,
92*84d9c625SLionel Sambuccomplaints, etc., you may mail to bug-less@gnu.org.
93f7cf2976SLionel Sambuc
94f7cf2976SLionel SambucNote to hackers: comments noting possible improvements are enclosed
95f7cf2976SLionel Sambucin double curly brackets {{ like this }}.
96f7cf2976SLionel Sambuc
97f7cf2976SLionel Sambuc(Note that the above note was originally written at a time when
98f7cf2976SLionel Sambuc"hackers" most commonly meant "enthusiastic and dedicated computer
99f7cf2976SLionel Sambucprogrammers", not "persons who attempt to circumvent computer security".)
100f7cf2976SLionel Sambuc
101f7cf2976SLionel Sambuc
102f7cf2976SLionel Sambuc
103f7cf2976SLionel Sambuc=======================================================================
104f7cf2976SLionel SambucINSTALLATION (MS-DOS systems only,
105f7cf2976SLionel Sambuc              with Microsoft C, Borland C, or DJGPP)
106f7cf2976SLionel Sambuc
107f7cf2976SLionel Sambuc1. Move the distributed source to its own directory.
108f7cf2976SLionel Sambuc   Depending on your compiler, you may need to convert the source
109f7cf2976SLionel Sambuc   to have CR-LF rather than LF as line terminators.
110f7cf2976SLionel Sambuc
111f7cf2976SLionel Sambuc2. If you are using Microsoft C, rename MAKEFILE.DSU to MAKEFILE.
112f7cf2976SLionel Sambuc   If you are using Borland C, rename MAKEFILE.DSB to MAKEFILE.
113f7cf2976SLionel Sambuc   If you are using DJGPP, rename MAKEFILE.DSG to MAKEFILE.
114f7cf2976SLionel Sambuc
115f7cf2976SLionel Sambuc3. Look at MAKEFILE to make sure that the definitions for CC and LIBDIR
116f7cf2976SLionel Sambuc   are correct.  CC should be the name of your C compiler and
117f7cf2976SLionel Sambuc   LIBDIR should be the directory where the C libraries reside (for
118f7cf2976SLionel Sambuc   Microsoft C only).  If these definitions need to be changed, you can
119f7cf2976SLionel Sambuc   either modify the definitions directly in MAKEFILE, or set your
120f7cf2976SLionel Sambuc   environment variables CC and/or LIBDIR to override the definitions
121f7cf2976SLionel Sambuc   in MAKEFILE.
122f7cf2976SLionel Sambuc
123f7cf2976SLionel Sambuc4. If you wish, you may edit DEFINES.DS to remove some optional features.
124f7cf2976SLionel Sambuc   If you choose not to include some features in your version, you may
125f7cf2976SLionel Sambuc   wish to edit the manual page LESS.MAN and the help page HELP.C
126f7cf2976SLionel Sambuc   to remove the descriptions of the features which you are removing.
127f7cf2976SLionel Sambuc
128f7cf2976SLionel Sambuc5. Run your "make" program and watch the fun.
129f7cf2976SLionel Sambuc   If your "make" requires a flag to import environment variables,
130f7cf2976SLionel Sambuc   you should use that flag.
131f7cf2976SLionel Sambuc   If your compiler runs out of memory, try running "make -n >cmds.bat"
132f7cf2976SLionel Sambuc   and then run cmds.bat.
133f7cf2976SLionel Sambuc
134f7cf2976SLionel Sambuc6. If the make succeeds, it will generate the programs "LESS.EXE" and
135f7cf2976SLionel Sambuc   "LESSKEY.EXE" in your current directory.  Test the generated programs.
136f7cf2976SLionel Sambuc
137f7cf2976SLionel Sambuc7. When satisfied that it works, you may wish to install LESS.EXE and
138f7cf2976SLionel Sambuc   LESSKEY.EXE in a directory which is included in your PATH.
139f7cf2976SLionel Sambuc
140f7cf2976SLionel Sambuc
141f7cf2976SLionel Sambuc
142f7cf2976SLionel Sambuc=======================================================================
143f7cf2976SLionel SambucINSTALLATION (Windows-95, Windows-98 and Windows-NT systems only,
144f7cf2976SLionel Sambuc              with Borland C or Microsoft Visual C++)
145f7cf2976SLionel Sambuc
146f7cf2976SLionel Sambuc1. Move the distributed source to its own directory.
147f7cf2976SLionel Sambuc
148f7cf2976SLionel Sambuc2. If you are using Borland C, rename Makefile.wnb to Makefile.
149f7cf2976SLionel Sambuc   If you are using Microsoft Visual C++, rename Makefile.wnm to Makefile.
150f7cf2976SLionel Sambuc
151f7cf2976SLionel Sambuc3. Check the Makefile to make sure the definitions look ok.
152f7cf2976SLionel Sambuc
153f7cf2976SLionel Sambuc4. If you wish, you may edit defines.wn to remove some optional features.
154f7cf2976SLionel Sambuc   If you choose not to include some features in your version, you may
155f7cf2976SLionel Sambuc   wish to edit the manual page less.man and the help page help.c
156f7cf2976SLionel Sambuc   to remove the descriptions of the features which you are removing.
157f7cf2976SLionel Sambuc
158f7cf2976SLionel Sambuc5. Type "make" and watch the fun.
159f7cf2976SLionel Sambuc
160f7cf2976SLionel Sambuc6. If the make succeeds, it will generate the programs "less.exe" and
161f7cf2976SLionel Sambuc   "lesskey.exe" in your current directory.  Test the generated programs.
162f7cf2976SLionel Sambuc
163f7cf2976SLionel Sambuc7. When satisfied that it works, if you wish to install it
164f7cf2976SLionel Sambuc   in a public place, type "make install".
165f7cf2976SLionel Sambuc   See step 6 of the Unix installation instructions for details
166f7cf2976SLionel Sambuc   on how to change the default installation directories.
167f7cf2976SLionel Sambuc
168f7cf2976SLionel Sambuc
169f7cf2976SLionel Sambuc
170f7cf2976SLionel Sambuc=======================================================================
171f7cf2976SLionel SambucINSTALLATION (OS/2 systems only,
172f7cf2976SLionel Sambuc              with EMX C)
173f7cf2976SLionel Sambuc
174f7cf2976SLionel Sambuc1. Move the distributed source to its own directory.
175f7cf2976SLionel Sambuc
176f7cf2976SLionel Sambuc2. Rename Makefile.o2e to Makefile.
177f7cf2976SLionel Sambuc
178f7cf2976SLionel Sambuc3. Check the Makefile to make sure the definitions look ok.
179f7cf2976SLionel Sambuc
180f7cf2976SLionel Sambuc4. If you wish, you may edit defines.o2 to remove some optional features.
181f7cf2976SLionel Sambuc   If you choose not to include some features in your version, you may
182f7cf2976SLionel Sambuc   wish to edit the manual page less.man and the help page help.c
183f7cf2976SLionel Sambuc   to remove the descriptions of the features which you are removing.
184f7cf2976SLionel Sambuc
185f7cf2976SLionel Sambuc5. Type "make" and watch the fun.
186f7cf2976SLionel Sambuc
187f7cf2976SLionel Sambuc6. If the make succeeds, it will generate the programs "less.exe" and
188f7cf2976SLionel Sambuc   "lesskey.exe" in your current directory.  Test the generated programs.
189f7cf2976SLionel Sambuc
190f7cf2976SLionel Sambuc7. Make sure you have the emx runtime installed. You need the emx DLLs
191f7cf2976SLionel Sambuc   emx.dll and emxlibcs.dll and also the termcap database, termcap.dat.
192f7cf2976SLionel Sambuc   Make sure you have termcap.dat either in the default location or
193f7cf2976SLionel Sambuc   somewhere in a directory listed in the PATH or INIT environment
194f7cf2976SLionel Sambuc   variables.
195f7cf2976SLionel Sambuc
196f7cf2976SLionel Sambuc8. When satisfied that it works, you may wish to install less.exe,
197f7cf2976SLionel Sambuc   lesskey.exe and scrsize.exe in a directory which is included in
198f7cf2976SLionel Sambuc   your PATH.  scrsize.exe is required only if you use a terminal
199f7cf2976SLionel Sambuc   emulator such as xterm or rxvt.
200f7cf2976SLionel Sambuc
201f7cf2976SLionel Sambuc
202f7cf2976SLionel Sambuc
203f7cf2976SLionel Sambuc=======================================================================
204f7cf2976SLionel SambucINSTALLATION (OS-9 systems only,
205f7cf2976SLionel Sambuc              with Microware C or Ultra C)
206f7cf2976SLionel Sambuc
207f7cf2976SLionel Sambuc1. Move the distributed source to its own directory.
208f7cf2976SLionel Sambuc
209f7cf2976SLionel Sambuc2. If you are using Microware C, rename Makefile.o9c to Makefile.
210f7cf2976SLionel Sambuc   If you are using Ultra C, rename Makefile.o9u to Makefile.
211f7cf2976SLionel Sambuc
212f7cf2976SLionel Sambuc3. Check the Makefile to make sure the definitions look ok.
213f7cf2976SLionel Sambuc
214f7cf2976SLionel Sambuc4. If you wish, you may edit defines.o9 to remove some optional features.
215f7cf2976SLionel Sambuc   If you choose not to include some features in your version, you may
216f7cf2976SLionel Sambuc   wish to edit the manual page less.man and the help page help.c
217f7cf2976SLionel Sambuc   to remove the descriptions of the features which you are removing.
218f7cf2976SLionel Sambuc
219f7cf2976SLionel Sambuc5. Type "dmake" and watch the fun.
220f7cf2976SLionel Sambuc   The standard OS-9 "make" will probably not work.  If you don't
221f7cf2976SLionel Sambuc   have dmake, you can get a copy from os9archive.rtsi.com.
222f7cf2976SLionel Sambuc
223f7cf2976SLionel Sambuc6. If the make succeeds, it will generate the programs "less" and
224f7cf2976SLionel Sambuc   "lesskey" in your current directory.  Test the generated programs.
225f7cf2976SLionel Sambuc
226f7cf2976SLionel Sambuc7. When satisfied that it works, if you wish to install it
227f7cf2976SLionel Sambuc   in a public place, type "dmake install".
228f7cf2976SLionel Sambuc   See step 6 of the Unix installation instructions for details
229f7cf2976SLionel Sambuc   on how to change the default installation directories.
230f7cf2976SLionel Sambuc
231f7cf2976SLionel Sambuc=======================================================================
232f7cf2976SLionel SambucACKNOWLEDGMENTS:
233f7cf2976SLionel Sambuc  Some versions of the less distribution are packaged using
234f7cf2976SLionel Sambuc  Info-ZIP's compression utility.
235f7cf2976SLionel Sambuc  Info-ZIP's software is free and can be obtained as source
236f7cf2976SLionel Sambuc  code or executables from various anonymous-ftp sites,
237f7cf2976SLionel Sambuc  including ftp.uu.net:/pub/archiving/zip.
238