README revision 243829
1249261Sdim************************************************************************** 2249261Sdim************************************************************************** 3249261Sdim** ** 4249261Sdim** The FreeBSD Project has chosen to redistribute and modify Less under ** 5249261Sdim** the 'Less License' (as described in the 'LICENSE' file). ** 6249261Sdim** ** 7249261Sdim************************************************************************** 8249261Sdim************************************************************************** 9249261Sdim 10249261Sdim Less, version 456 11249261Sdim 12249261Sdim This is the distribution of less, version 456, released 08 Nov 2012. 13249261Sdim This program is part of the GNU project (http://www.gnu.org). 14249261Sdim 15249261Sdim This program is free software. You may redistribute it and/or 16249261Sdim modify it under the terms of either: 17249261Sdim 18288943Sdim 1. The GNU General Public License, as published by the Free 19251662Sdim Software Foundation; either version 3, or (at your option) any 20249261Sdim later version. A copy of this license is in the file COPYING. 21276479Sdim or 22276479Sdim 2. The Less License, in the file LICENSE. 23249261Sdim 24249261Sdim Please report any problems to bug-less@gnu.org. 25249261Sdim See http://www.greenwoodsoftware.com/less for the latest info. 26261991Sdim 27249261Sdim========================================================================= 28249261Sdim 29249261SdimThis is the distribution of "less", a paginator similar to "more" or "pg". 30249261Sdim 31249261SdimThe formatted manual page is in less.man. 32249261SdimThe manual page nroff source is in less.nro. 33249261SdimMajor changes made since the last posted version are in NEWS. 34249261Sdim 35261991Sdim======================================================================= 36280031SdimINSTALLATION (Unix systems only): 37280031Sdim 38280031Sdim1. Move the distributed source to its own directory and unpack it, 39261991Sdim if you have not already done so. 40276479Sdim 41249261Sdim2. Type "sh configure". 42249261Sdim This will generate a Makefile and a defines.h. 43249261Sdim Warning: if you have a GNU sed, make sure it is version 2.05 or later. 44249261Sdim 45276479Sdim The file INSTALL describes the usage of the configure program in 46249261Sdim general. In addition, these options to configure are supported: 47288943Sdim 48288943Sdim --with-editor=program 49249261Sdim Specifies the default editor program used by the "v" command. 50288943Sdim The default is "vi". 51288943Sdim 52288943Sdim --with-regex=lib 53288943Sdim Specifies the regular expression library used by less for pattern 54288943Sdim matching. The default is "auto", which means the configure program 55249261Sdim finds a regular expression library automatically. Other values are: 56276479Sdim posix Use the POSIX-compatible regcomp. 57276479Sdim pcre Use the PCRE library. 58276479Sdim regcmp Use the regcmp library. 59276479Sdim re_comp Use the re_comp library. 60276479Sdim regcomp Use the V8-compatible regcomp. 61280031Sdim regcomp-local Use Henry Spencer's V8-compatible regcomp 62280031Sdim (source is supplied with less). 63280031Sdim none No regular expressions, only simple string matching. 64280031Sdim --with-secure 65276479Sdim Builds a "secure" version of less, with some features disabled 66249261Sdim to prevent users from viewing other files, accessing shell 67249261Sdim commands, etc. 68249261Sdim 69249261Sdim 70249261Sdim3. It is a good idea to look over the generated Makefile and defines.h 71249261Sdim and make sure they look ok. If you know of any peculiarities of 72249261Sdim your system that configure might not have detected, you may fix the 73280031Sdim Makefile now. Take particular notice of the list of "terminal" 74280031Sdim libraries in the LIBS definition in the Makefile; these may need 75280031Sdim to be edited. The terminal libraries will be some subset of 76280031Sdim -lncurses -lcurses -ltermcap -ltermlib 77280031Sdim 78288943Sdim If you wish, you may edit defines.h to remove some optional features. 79288943Sdim If you choose not to include some features in your version, you may 80249261Sdim wish to edit the manual page "less.nro" and the help page "less.hlp" 81261991Sdim to remove the descriptions of the features which you are removing. 82261991Sdim If you edit less.hlp, you should run "make -f Makefile.aut help.c". 83261991Sdim 84261991Sdim4. Type "make" and watch the fun. 85261991Sdim 86261991Sdim5. If the make succeeds, it will generate the programs "less", 87261991Sdim "lesskey" and "lessecho" in your current directory. Test the 88280031Sdim generated programs. 89280031Sdim 90288943Sdim6. When satisfied that it works, if you wish to install it 91261991Sdim in a public place, type "make install". 92249261Sdim 93249261Sdim The default install destinations are: 94249261Sdim Executables (less, lesskey, lessecho) in /usr/local/bin 95249261Sdim Documentation (less.nro, lesskey.nro) in /usr/local/man/man1 96249261Sdim If you want to install any of these files elsewhere, define 97249261Sdim bindir and/or mandir to the appropriate directories. 98249261Sdim 99249261SdimIf you have any problems building or running "less", suggestions, 100276479Sdimcomplaints, etc., you may mail to bug-less@gnu.org. 101249261Sdim 102288943SdimNote to hackers: comments noting possible improvements are enclosed 103288943Sdimin double curly brackets {{ like this }}. 104249261Sdim 105249261Sdim(Note that the above note was originally written at a time when 106249261Sdim"hackers" most commonly meant "enthusiastic and dedicated computer 107249261Sdimprogrammers", not "persons who attempt to circumvent computer security".) 108249261Sdim 109249261Sdim 110249261Sdim 111249261Sdim======================================================================= 112276479SdimINSTALLATION (MS-DOS systems only, 113249261Sdim with Microsoft C, Borland C, or DJGPP) 114261991Sdim 115249261Sdim1. Move the distributed source to its own directory. 116261991Sdim Depending on your compiler, you may need to convert the source 117261991Sdim to have CR-LF rather than LF as line terminators. 118249261Sdim 119249261Sdim2. If you are using Microsoft C, rename MAKEFILE.DSU to MAKEFILE. 120249261Sdim If you are using Borland C, rename MAKEFILE.DSB to MAKEFILE. 121249261Sdim If you are using DJGPP, rename MAKEFILE.DSG to MAKEFILE. 122296417Sdim 123296417Sdim3. Look at MAKEFILE to make sure that the definitions for CC and LIBDIR 124296417Sdim are correct. CC should be the name of your C compiler and 125296417Sdim LIBDIR should be the directory where the C libraries reside (for 126296417Sdim Microsoft C only). If these definitions need to be changed, you can 127296417Sdim either modify the definitions directly in MAKEFILE, or set your 128280031Sdim environment variables CC and/or LIBDIR to override the definitions 129261991Sdim in MAKEFILE. 130261991Sdim 131288943Sdim4. If you wish, you may edit DEFINES.DS to remove some optional features. 132288943Sdim If you choose not to include some features in your version, you may 133288943Sdim wish to edit the manual page LESS.MAN and the help page HELP.C 134288943Sdim to remove the descriptions of the features which you are removing. 135288943Sdim 136276479Sdim5. Run your "make" program and watch the fun. 137296417Sdim If your "make" requires a flag to import environment variables, 138276479Sdim you should use that flag. 139276479Sdim If your compiler runs out of memory, try running "make -n >cmds.bat" 140276479Sdim and then run cmds.bat. 141276479Sdim 142276479Sdim6. If the make succeeds, it will generate the programs "LESS.EXE" and 143276479Sdim "LESSKEY.EXE" in your current directory. Test the generated programs. 144288943Sdim 145276479Sdim7. When satisfied that it works, you may wish to install LESS.EXE and 146276479Sdim LESSKEY.EXE in a directory which is included in your PATH. 147276479Sdim 148280031Sdim 149280031Sdim 150280031Sdim======================================================================= 151296417SdimINSTALLATION (Windows-95, Windows-98 and Windows-NT systems only, 152296417Sdim with Borland C or Microsoft Visual C++) 153296417Sdim 154296417Sdim1. Move the distributed source to its own directory. 155261991Sdim 156261991Sdim2. If you are using Borland C, rename Makefile.wnb to Makefile. 157249261Sdim If you are using Microsoft Visual C++, rename Makefile.wnm to Makefile. 158249261Sdim 159249261Sdim3. Check the Makefile to make sure the definitions look ok. 160249261Sdim 161249261Sdim4. If you wish, you may edit defines.wn to remove some optional features. 162296417Sdim If you choose not to include some features in your version, you may 163296417Sdim wish to edit the manual page less.man and the help page help.c 164261991Sdim to remove the descriptions of the features which you are removing. 165261991Sdim 166288943Sdim5. Type "make" and watch the fun. 167288943Sdim 168276479Sdim6. If the make succeeds, it will generate the programs "less.exe" and 169249261Sdim "lesskey.exe" in your current directory. Test the generated programs. 170249261Sdim 171249261Sdim7. When satisfied that it works, if you wish to install it 172249261Sdim in a public place, type "make install". 173261991Sdim See step 6 of the Unix installation instructions for details 174261991Sdim on how to change the default installation directories. 175261991Sdim 176261991Sdim 177261991Sdim 178261991Sdim======================================================================= 179261991SdimINSTALLATION (OS/2 systems only, 180261991Sdim with EMX C) 181261991Sdim 182261991Sdim1. Move the distributed source to its own directory. 183261991Sdim 184249261Sdim2. Rename Makefile.o2e to Makefile. 185249261Sdim 186249261Sdim3. Check the Makefile to make sure the definitions look ok. 187280031Sdim 188261991Sdim4. If you wish, you may edit defines.o2 to remove some optional features. 189261991Sdim If you choose not to include some features in your version, you may 190261991Sdim wish to edit the manual page less.man and the help page help.c 191280031Sdim to remove the descriptions of the features which you are removing. 192276479Sdim 193249261Sdim5. Type "make" and watch the fun. 194261991Sdim 195261991Sdim6. If the make succeeds, it will generate the programs "less.exe" and 196261991Sdim "lesskey.exe" in your current directory. Test the generated programs. 197296417Sdim 198261991Sdim7. Make sure you have the emx runtime installed. You need the emx DLLs 199249261Sdim emx.dll and emxlibcs.dll and also the termcap database, termcap.dat. 200249261Sdim Make sure you have termcap.dat either in the default location or 201249261Sdim somewhere in a directory listed in the PATH or INIT environment 202296417Sdim variables. 203296417Sdim 204296417Sdim8. When satisfied that it works, you may wish to install less.exe, 205296417Sdim lesskey.exe and scrsize.exe in a directory which is included in 206296417Sdim your PATH. scrsize.exe is required only if you use a terminal 207296417Sdim emulator such as xterm or rxvt. 208296417Sdim 209296417Sdim 210296417Sdim 211296417Sdim======================================================================= 212296417SdimINSTALLATION (OS-9 systems only, 213296417Sdim with Microware C or Ultra C) 214249261Sdim 215249261Sdim1. Move the distributed source to its own directory. 216276479Sdim 217249261Sdim2. If you are using Microware C, rename Makefile.o9c to Makefile. 218249261Sdim If you are using Ultra C, rename Makefile.o9u to Makefile. 219249261Sdim 220249261Sdim3. Check the Makefile to make sure the definitions look ok. 221249261Sdim 222280031Sdim4. If you wish, you may edit defines.o9 to remove some optional features. 223276479Sdim If you choose not to include some features in your version, you may 224280031Sdim wish to edit the manual page less.man and the help page help.c 225280031Sdim to remove the descriptions of the features which you are removing. 226280031Sdim 227280031Sdim5. Type "dmake" and watch the fun. 228276479Sdim The standard OS-9 "make" will probably not work. If you don't 229261991Sdim have dmake, you can get a copy from os9archive.rtsi.com. 230261991Sdim 231261991Sdim6. If the make succeeds, it will generate the programs "less" and 232261991Sdim "lesskey" in your current directory. Test the generated programs. 233261991Sdim 234261991Sdim7. When satisfied that it works, if you wish to install it 235261991Sdim in a public place, type "dmake install". 236249261Sdim See step 6 of the Unix installation instructions for details 237249261Sdim on how to change the default installation directories. 238249261Sdim 239249261Sdim======================================================================= 240249261SdimACKNOWLEDGMENTS: 241288943Sdim Some versions of the less distribution are packaged using 242288943Sdim Info-ZIP's compression utility. 243276479Sdim Info-ZIP's software is free and can be obtained as source 244261991Sdim code or executables from various anonymous-ftp sites, 245261991Sdim including ftp.uu.net:/pub/archiving/zip. 246261991Sdim