regen patches and clean up

This commit is contained in:
naddy 2002-07-26 19:38:46 +00:00
parent 0dda261f9c
commit ab3de53fc5
7 changed files with 42 additions and 72 deletions

View File

@ -1,24 +1,18 @@
# OpenBSD makefile for: xless
# Version required: 1.7
# Date created: May 20 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.13 2002/05/13 23:31:26 espie Exp $
#
# $OpenBSD: Makefile,v 1.14 2002/07/26 19:38:46 naddy Exp $
COMMENT= "X11 viewer for text files"
DISTNAME= xless-1.7
CATEGORIES= misc
NEED_VERSION= 1.515
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=applications/} \
ftp://ftp.cs.berkeley.edu/ucb/people/dglo/xless/
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=applications/} \
ftp://ftp.cs.berkeley.edu/ucb/people/dglo/xless/
CONFIGURE_STYLE=imake
.include <bsd.port.mk>

View File

@ -1,5 +1,6 @@
$OpenBSD: patch-Imakefile,v 1.1 2002/07/26 19:38:47 naddy Exp $
--- Imakefile.orig Fri Jun 3 01:22:14 1994
+++ Imakefile Wed Jun 7 00:27:20 2000
+++ Imakefile Fri Jul 26 21:35:26 2002
@@ -5,7 +5,8 @@
* -DPRINTCMD=\"/usr/ucb/lpr\" - path to send file to printer
* -DTILDE_EXPANSION - perform ~ expansion on filenames

View File

@ -1,32 +0,0 @@
*** ../work/xless-1.7/xless.h Mon Dec 23 15:57:37 1996
--- xless.h Mon Dec 23 16:11:53 1996
***************
*** 38,50 ****
#define XLESS_MAX_INPUT 256
! /* handle differences between K&R and ANSI C */
#if __STDC__
#define __P(a) a
#else
#define __P(a) ()
#define const
#endif
/*
* The default editor; make sure the file exists.
--- 38,51 ----
#define XLESS_MAX_INPUT 256
! /* handle differences between K&R and ANSI C
#if __STDC__
#define __P(a) a
#else
#define __P(a) ()
#define const
#endif
+ */
/*
* The default editor; make sure the file exists.

View File

@ -1,21 +0,0 @@
*** callbacks.c.orig Wed May 20 03:00:20 1998
--- callbacks.c Wed May 20 03:01:33 1998
***************
*** 454,461 ****
if (wi->file == NULL) {
/* create a temporary file */
! printfile = tmpnam(0);
! file = fopen(printfile, "w");
#ifdef WIMPY_STDIO
/* write stdin (line by line) to temporary file */
--- 454,461 ----
if (wi->file == NULL) {
/* create a temporary file */
! printfile = strdup("/tmp/ab.XXXXXXXX");
! file = fdopen(mkstemp(printfile), "w");
#ifdef WIMPY_STDIO
/* write stdin (line by line) to temporary file */

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-callbacks_c,v 1.1 2002/07/26 19:38:47 naddy Exp $
--- callbacks.c.orig Fri Jul 29 04:29:23 1994
+++ callbacks.c Fri Jul 26 21:35:26 2002
@@ -454,8 +454,8 @@ XtPointer callData;
if (wi->file == NULL) {
/* create a temporary file */
- printfile = tmpnam(0);
- file = fopen(printfile, "w");
+ printfile = strdup("/tmp/ab.XXXXXXXX");
+ file = fdopen(mkstemp(printfile), "w");
#ifdef WIMPY_STDIO
/* write stdin (line by line) to temporary file */

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-xless_h,v 1.1 2002/07/26 19:38:47 naddy Exp $
--- xless.h.orig Fri Jul 29 04:56:41 1994
+++ xless.h Fri Jul 26 21:35:26 2002
@@ -38,13 +38,14 @@
#define XLESS_MAX_INPUT 256
-/* handle differences between K&R and ANSI C */
+/* handle differences between K&R and ANSI C
#if __STDC__
#define __P(a) a
#else
#define __P(a) ()
#define const
#endif
+*/
/*
* The default editor; make sure the file exists.

View File

@ -1,11 +1,10 @@
This is a port of xless (version 1.7), a handy text file viewer for X.
Xless is a handy text file viewer for X.
Useful as a viewer tool for other apps (e.g., xfm, the X file manager),
or as a standalone viewer. Presents a scrollable text window (both
vertical and horizontal scrolling), with a number of clickable buttons.
From the README file:
FEATURES:
Features:
Display either the file(s) specified on the command line or input from
standard input, supplied by a pipe. File/pipe may be optionally
monitored so that the display is continuously updated as new text is
@ -16,7 +15,3 @@ FEATURES:
regular expression patterns.
Edit the displayed file with your favorite editor (as specified in
the VISUAL or EDITOR environment variable)
--
Conrad Sabatier
conrads@neosoft.com