[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / pipestatus

File: [cvs.NetBSD.org] / pkgsrc / devel / pipestatus / Makefile (download)

Revision 1.1.1.1 (vendor branch), Wed Mar 10 23:47:02 2010 UTC (7 years, 9 months ago) by wiz
Branch: TNF
CVS Tags: pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-20100311
Changes since 1.1: +0 -0 lines

Initial import of pipestatus-0.6.0, packaged for wip by Aleksey Cheusov.
Addresses PR 40250.

pipestatus - source file for POSIX shell that allows
to obtain an exit status of every program in a pipe.

                        MOTIVATION

When we program in shell we often run pipes like this

    prog1 args1 | prog2 args2 | ... | progN argsN

POSIX says that exit status of pipe is the exit status of LAST program
in it, i.e.  progN in our example. That is, exit status of all other
programs in pipe is silently ignored.  But in many situations exit
status of all programs in pipe should be checked to make program
robust. Some shells like BASH and ZSH have special extensions for
doing this but POSIX shell unfortunately doesn't provide an EASY way
for doing this.

In order to solve the problem, described above pipestatus was written.

# $NetBSD: Makefile,v 1.1.1.1 2010/03/10 23:47:02 wiz Exp $
#

DISTNAME=	pipestatus-0.6.0
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pipestatus/}

MAINTAINER=	cheusov@tut.by
HOMEPAGE=	http://sourceforge.net/projects/pipestatus/
COMMENT=	UNIX/POSIX shell helper for running pipes safely
LICENSE=	public-domain

PKG_DESTDIR_SUPPORT=	user-destdir

NO_CONFIGURE=		yes
NO_BUILD=		yes

INSTALLATION_DIRS+=	bin share/doc/pipestatus
DOCS=			README NEWS

TEST_TARGET=		test
MAKE_FLAGS+=		SH=${SH:Q}

do-install:
	${INSTALL_DATA} ${WRKSRC}/pipestatus ${DESTDIR}${PREFIX}/bin/
.for doc in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DESTDIR}${PREFIX}/share/doc/pipestatus/
.endfor

.include "../../mk/bsd.pkg.mk"