Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2006 20:40:07 GMT
From:      "Jeffrey H. Johnson" <CPE1704TKS@bellsouth.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/92146: [NEW PORT] misc/newer: An implementation of AT&T Research UNIX V8 newer(1)
Message-ID:  <200601222040.k0MKe7Fv028405@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/92146; it has been noted by GNATS.

From: "Jeffrey H. Johnson" <CPE1704TKS@bellsouth.net>
To: Sergey Matveychuk <sem@FreeBSD.org>, bug-followup@FreeBSD.org
Cc: CPE1704TKS@bellsouth.net
Subject: Re: ports/92146: [NEW PORT] misc/newer: An implementation of AT&T
 Research UNIX V8 newer(1)
Date: Sun, 22 Jan 2006 15:27:40 -0500

 He it is, with proper CONFLICTS, sorry for the mess:
 
 --- newer-1.0_1.shar begins here ---
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	newer
 #	newer/Makefile
 #	newer/distinfo
 #	newer/pkg-descr
 #
 echo c - newer
 mkdir -p newer > /dev/null 2>&1
 echo x - newer/Makefile
 sed 's/^X//' >newer/Makefile << 'END-of-newer/Makefile'
 X# New ports collection makefile for:    newer
 X# Date created:         22 January 2006
 X# Whom:                 Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
 X#
 X# $FreeBSD: ports/misc/newer/Makefile,v 1.01 2006/01/22 15:28:42 trn Exp $
 X#
 X
 XPORTNAME=	newer
 XPORTVERSION=	1.0
 XPORTREVISION=	1
 XCATEGORIES=	misc
 XMASTER_SITES=	ftp://ftp.cwru.edu/pub/chet/
 XDISTFILES=	newer.c
 X
 XMAINTAINER=	CPE1704TKS@bellsouth.net
 XCOMMENT=	An implementation of AT&T Research UNIX V8 newer(1)
 X
 XEXTRACT_ONLY=
 X
 XCONFLICTS=	teTeX-base-[0-9]*
 X
 XPLIST_FILES=	bin/newer
 XNO_EXTRACT=	yes
 X
 Xdo-build:
 X	${CP} ${DISTDIR}/newer.c ${WRKDIR}/newer.c
 X	${CC} ${CFLAGS} -o ${WRKDIR}/newer ${WRKDIR}/newer.c
 X
 Xdo-install:
 X	${INSTALL_PROGRAM} ${WRKDIR}/newer ${PREFIX}/bin
 X
 X.include <bsd.port.mk>
 END-of-newer/Makefile
 echo x - newer/distinfo
 sed 's/^X//' >newer/distinfo << 'END-of-newer/distinfo'
 XMD5 (newer.c) = b21df1d77cfa2a7559d2e9cd6e0ca841
 XSHA256 (newer.c) =
 42117fa1b4fe735742bc5be1e73e80cffb041ae264290432ae5dc7faa292d0d4
 XSIZE (newer.c) =  1539
 END-of-newer/distinfo
 echo x - newer/pkg-descr
 sed 's/^X//' >newer/pkg-descr << 'END-of-newer/pkg-descr'
 X> There doesn't appear to be any decent way to compare the last modified
 X> times of files from the shell...
 X
 XBefore everybody starts inventing their own names for this, it should be
 Xnoted that V8 already has a program for this, newer(1).  It takes two
 Xfilenames as arguments, and exits with status 0 if and only if either
 X(a) the first exists and the second does not, or (b) both exist and the
 Xfirst's modification time is at least as recent as the second's.  Other-
 Xwise it exits with non-zero status.  (The preceding two sentences are
 Xessentially the whole of the manual page for it.)
 X 
 XRelatively few people have V8, but in the absence of any other precedent
 Xfor what this facility should like look, it seems reasonable to follow
 XV8's lead:
 X
 Xnewer file1 file2
 X
 Xexit with 0 status if file1 exists and file2 does not, or if file1's last
 Xmodified time is at least as recent as file2's.
 END-of-newer/pkg-descr
 exit
 --- newer-1.0_1.shar ends here ---
 
 --
 Jeffrey H. Johnson
 CPE1704TKS@bellsouth.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601222040.k0MKe7Fv028405>