mgdiff port

This commit is contained in:
angelos 1998-05-22 01:16:52 +00:00
parent 2084b854dc
commit b96ad21c4b
8 changed files with 111 additions and 0 deletions

25
textproc/mgdiff/Makefile Normal file
View File

@ -0,0 +1,25 @@
# OpenBSD makefile for: mgdiff
# Version required: 1.0
# Date created: May 21 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/22 01:16:52 angelos Exp $
#
DISTNAME= mgdiff
PKGNAME= mgdiff-1.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications
MAINTAINER= angelos@openbsd.org
REQUIRES_MOTIF= yes
USE_IMAKE= yes
post-install:
@${MKDIR} ${PREFIX}/lib/X11/mgdiff
@${INSTALL_DATA} ${WRKSRC}/mgdiff.x[bp]m ${PREFIX}/lib/X11/mgdiff
@${CAT} ${PKGDIR}/MESSAGE
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (mgdiff.tar.gz) = da896496dcb9ef2947496472f094b65f

View File

@ -0,0 +1,27 @@
*** Imakefile.orig Thu May 19 04:01:00 1994
--- Imakefile Sat Nov 2 17:06:31 1996
***************
*** 5,14 ****
XCOMM Imakefile,v 2.0 1994/05/19 02:01:00 dan Exp
! XMLIB = -lXm
XCOMM
! XCOMM for Dell SVR4
XCOMM
! EXTRA_LIBRARIES = -lc -lucb
SRCS = mgdiff.c rundiff.c misc.c files.c spawn.c manual.c modal.c legend.c
OBJS = mgdiff.o rundiff.o misc.o files.o spawn.o manual.o modal.o legend.o
--- 5,16 ----
XCOMM Imakefile,v 2.0 1994/05/19 02:01:00 dan Exp
! XMLIB = ${MOTIFLIB}
+
XCOMM
! XCOMM The gnuregex library is needed for the Motif file selection box widget.
XCOMM
! XCOMM
! EXTRA_LIBRARIES =
SRCS = mgdiff.c rundiff.c misc.c files.c spawn.c manual.c modal.c legend.c
OBJS = mgdiff.o rundiff.o misc.o files.o spawn.o manual.o modal.o legend.o

View File

@ -0,0 +1,40 @@
*** mgdiff.c.orig Thu May 21 21:14:35 1998
--- mgdiff.c Thu May 21 21:16:57 1998
***************
*** 1110,1116 ****
*/
case 3:
if (strcmp (argv[1], "-") == 0) {
! tempfname = tempnam (NULL, "mgdif");
str_fnamel = strdup (tempfname);
str_snamel = strdup (user_filename);
if (!copy_to_file (stdin, tempfname)) {
--- 1110,1118 ----
*/
case 3:
if (strcmp (argv[1], "-") == 0) {
! char xxx[20];
! sprintf(tempfname, "mgdif.XXXXXXXX");
! close(mkstemp (tempfname));
str_fnamel = strdup (tempfname);
str_snamel = strdup (user_filename);
if (!copy_to_file (stdin, tempfname)) {
***************
*** 1131,1137 ****
}
if (strcmp (argv[2], "-") == 0) {
! tempfname = tempnam (NULL, "mgdif");
str_fnamer = strdup (tempfname);
str_snamer = strdup (user_filename);
if (!copy_to_file (stdin, tempfname)) {
--- 1133,1141 ----
}
if (strcmp (argv[2], "-") == 0) {
! char xxx[20];
! sprintf(tempfname, "mgdif.XXXXXXXX");
! close(mkstemp (tempfname));
str_fnamer = strdup (tempfname);
str_snamer = strdup (user_filename);
if (!copy_to_file (stdin, tempfname)) {

View File

@ -0,0 +1 @@
A graphical front end to the Unix diff command

View File

@ -0,0 +1,9 @@
This is mgdiff, a graphical front end to the Unix diff command based
upon X11R[456] and the Motif widget set. It allows the user to select
two files for comparison, runs the diff command, parses the output and
presents the results graphically. This presentation can also be used
to generate a user-specified merge of the two files into a third file.
This program's appearance is based upon a program called gdiff, which
runs only on Silicon Graphics workstations and for which source code
is not provided.

View File

@ -0,0 +1,3 @@
Mgdiff comes with .xbm and .xpm files for use as window
manager icons. You will find them in ${PREFIX}/lib/X11/mgdiff.

View File

@ -0,0 +1,5 @@
bin/mgdiff
man/man1/mgdiff.1
lib/X11/app-defaults/Mgdiff
lib/X11/mgdiff/mgdiff.xbm
lib/X11/mgdiff/mgdiff.xpm