less has been part of the base system since 4.1-RELEASE. Remove it.

This commit is contained in:
Kris Kennaway 2002-10-13 03:50:52 +00:00
parent e70865d61e
commit e2064982ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67937
15 changed files with 0 additions and 189 deletions

View file

@ -174,7 +174,6 @@
SUBDIR += kp SUBDIR += kp
SUBDIR += kwatch SUBDIR += kwatch
SUBDIR += lc SUBDIR += lc
SUBDIR += less
SUBDIR += libelysium SUBDIR += libelysium
SUBDIR += libh SUBDIR += libh
SUBDIR += libmcal SUBDIR += libmcal

View file

@ -1,33 +0,0 @@
# New ports collection makefile for: less
# Date created: 8 Nov 1994
# Whom: ache
#
# $FreeBSD$
#
PORTNAME= less
PORTVERSION= 376
CATEGORIES= misc
MASTER_SITES= http://www.greenwoodsoftware.com/%SUBDIR%/ \
${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= less
MAINTAINER= jharris@widomaker.com
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500003
FORBIDDEN= already is in the base system
.endif
GNU_CONFIGURE= yes
MAN1= less.1 lesskey.1
.if defined(COLOUR_LESS) || defined(COLOR_LESS)
MAKE_ENV= CPPFLAGS="-DCOLOUR_LESS"
pre-fetch:
@${ECHO_MSG} "Making a colour version of less."
.endif
.include <bsd.port.post.mk>

View file

@ -1 +0,0 @@
MD5 (less-376.tar.gz) = 10ea49ecf3c35fe122002f2b8f1bf1ba

View file

@ -1,11 +0,0 @@
--- Makefile.in.orig Fri Apr 9 20:02:59 1999
+++ Makefile.in Thu Apr 15 23:09:36 1999
@@ -15,7 +15,7 @@
LDFLAGS = @LDFLAGS@
O=o
-LIBS = @LIBS@
+LIBS = -ltermcap
prefix = @prefix@
exec_prefix = @exec_prefix@

View file

@ -1,41 +0,0 @@
--- charset.c.orig Thu Mar 23 05:36:33 2000
+++ charset.c Mon Jun 19 22:33:43 2000
@@ -267,6 +267,10 @@
control_char(c)
int c;
{
+#ifdef COLOR_LESS
+ if (c == ESC)
+ return 0;
+#endif
c &= 0377;
return (chardef[c] & IS_CONTROL_CHAR);
}
@@ -281,6 +285,20 @@
{
static char buf[8];
+#ifdef COLOR_LESS
+ if(c == ESC)
+ sprintf(buf, "%c", ESC);
+ else
+ {
+ c &= 0377;
+ if (!control_char(c))
+ sprintf(buf, "%c", c);
+ else if (!control_char(c ^ 0100))
+ sprintf(buf, "^%c", c ^ 0100);
+ else
+ sprintf(buf, binfmt, c);
+ }
+#else
c &= 0377;
if (!control_char(c))
sprintf(buf, "%c", c);
@@ -290,5 +308,6 @@
sprintf(buf, "^%c", c ^ 0100);
else
sprintf(buf, binfmt, c);
+#endif
return (buf);
}

View file

@ -1 +0,0 @@
A better pager utility

View file

@ -1,4 +0,0 @@
This is the distribution of "less", a paginator similar to "more" or "pg",
but much more powerful.
WWW: http://www.greenwoodsoftware.com/less/

View file

@ -1,3 +0,0 @@
bin/less
bin/lesskey
bin/lessecho

View file

@ -1,33 +0,0 @@
# New ports collection makefile for: less
# Date created: 8 Nov 1994
# Whom: ache
#
# $FreeBSD$
#
PORTNAME= less
PORTVERSION= 376
CATEGORIES= misc
MASTER_SITES= http://www.greenwoodsoftware.com/%SUBDIR%/ \
${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= less
MAINTAINER= jharris@widomaker.com
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500003
FORBIDDEN= already is in the base system
.endif
GNU_CONFIGURE= yes
MAN1= less.1 lesskey.1
.if defined(COLOUR_LESS) || defined(COLOR_LESS)
MAKE_ENV= CPPFLAGS="-DCOLOUR_LESS"
pre-fetch:
@${ECHO_MSG} "Making a colour version of less."
.endif
.include <bsd.port.post.mk>

View file

@ -1 +0,0 @@
MD5 (less-376.tar.gz) = 10ea49ecf3c35fe122002f2b8f1bf1ba

View file

@ -1,11 +0,0 @@
--- Makefile.in.orig Fri Apr 9 20:02:59 1999
+++ Makefile.in Thu Apr 15 23:09:36 1999
@@ -15,7 +15,7 @@
LDFLAGS = @LDFLAGS@
O=o
-LIBS = @LIBS@
+LIBS = -ltermcap
prefix = @prefix@
exec_prefix = @exec_prefix@

View file

@ -1,41 +0,0 @@
--- charset.c.orig Thu Mar 23 05:36:33 2000
+++ charset.c Mon Jun 19 22:33:43 2000
@@ -267,6 +267,10 @@
control_char(c)
int c;
{
+#ifdef COLOR_LESS
+ if (c == ESC)
+ return 0;
+#endif
c &= 0377;
return (chardef[c] & IS_CONTROL_CHAR);
}
@@ -281,6 +285,20 @@
{
static char buf[8];
+#ifdef COLOR_LESS
+ if(c == ESC)
+ sprintf(buf, "%c", ESC);
+ else
+ {
+ c &= 0377;
+ if (!control_char(c))
+ sprintf(buf, "%c", c);
+ else if (!control_char(c ^ 0100))
+ sprintf(buf, "^%c", c ^ 0100);
+ else
+ sprintf(buf, binfmt, c);
+ }
+#else
c &= 0377;
if (!control_char(c))
sprintf(buf, "%c", c);
@@ -290,5 +308,6 @@
sprintf(buf, "^%c", c ^ 0100);
else
sprintf(buf, binfmt, c);
+#endif
return (buf);
}

View file

@ -1 +0,0 @@
A better pager utility

View file

@ -1,4 +0,0 @@
This is the distribution of "less", a paginator similar to "more" or "pg",
but much more powerful.
WWW: http://www.greenwoodsoftware.com/less/

View file

@ -1,3 +0,0 @@
bin/less
bin/lesskey
bin/lessecho