Don't add all the help text when SMALLPROG is set.

This commit is contained in:
dsl 2006-11-20 22:06:26 +00:00
parent 9a87be9622
commit efbf65678a
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,10 @@
# $NetBSD: Makefile,v 1.10 2006/10/08 17:52:29 peter Exp $
# $NetBSD: Makefile,v 1.11 2006/11/20 22:06:26 dsl Exp $
# from: @(#)Makefile 5.6 (Berkeley) 3/12/91
.ifdef SMALLPROG
CPPFLAGS+=-DSMALL
.endif
PROG= less
CPPFLAGS+=-I${.CURDIR} -I${.CURDIR}/../lesskey -DSYSDIR=\"/etc\"
SRCS= brac.c ch.c charset.c cmdbuf.c command.c decode.c edit.c \

View File

@ -1,7 +1,10 @@
/* $NetBSD: help.c,v 1.5 2003/04/14 02:56:47 mrg Exp $ */
/* $NetBSD: help.c,v 1.6 2006/11/20 22:06:26 dsl Exp $ */
/* This file was generated by mkhelp from less.hlp */
#include "less.h"
#ifdef SMALL
constant char helpdata[] = "\nNo help available\n";
#else
constant char helpdata[] = {
'\n',
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','S','\b','S','U','\b','U','M','\b','M','M','\b','M','A','\b','A','R','\b','R','Y','\b','Y',' ','O','\b','O','F','\b','F',' ','L','\b','L','E','\b','E','S','\b','S','S','\b','S',' ','C','\b','C','O','\b','O','M','\b','M','M','\b','M','A','\b','A','N','\b','N','D','\b','D','S','\b','S','\n',
@ -225,4 +228,5 @@ constant char helpdata[] = {
' ','C','N','T','L','-','L',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','C','o','m','p','l','e','t','e',' ','f','i','l','e','n','a','m','e',',',' ','l','i','s','t',' ','a','l','l','.','\n',
'\n',
0 };
#endif
constant int size_helpdata = sizeof(helpdata) - 1;