From 8ac065d74ddca7c55d5d6a05e912e84a4face90c Mon Sep 17 00:00:00 2001 From: Chin-San Huang Date: Sat, 26 Jan 2008 01:55:53 +0000 Subject: 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. WWW: http://sourceforge.net/projects/pipestatus/ --- devel/pipestatus/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 devel/pipestatus/Makefile (limited to 'devel/pipestatus/Makefile') diff --git a/devel/pipestatus/Makefile b/devel/pipestatus/Makefile new file mode 100644 index 000000000000..3ba8676d50b3 --- /dev/null +++ b/devel/pipestatus/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: pipestatus +# Date created: 2008/01/26 +# Whom: chinsan +# +# $FreeBSD$ +# + +PORTNAME= pipestatus +PORTVERSION= 0.4.0 +CATEGORIES= devel +MASTER_SITES= SF + +MAINTAINER= chinsan@FreeBSD.org +COMMENT= UNIX/POSIX shell helper for running pipes safely + +NO_BUILD= yes + +PLIST_FILES= bin/pipestatus +.if !defined(NOPORTDOCS) +PLIST_DIRS= ${DOCSDIR_REL} +PLIST_FILES+= ${DOCSDIR_REL}/README \ + ${DOCSDIR_REL}/NEWS +.endif +DOCS= README NEWS + +do-install: + ${INSTALL_DATA} ${WRKSRC}/pipestatus ${DESTDIR}${PREFIX}/bin/ +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for doc in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} +.endfor +.endif + +.include -- cgit v1.2.3